From 617aa4f5d42a5f6c50c871e0fedb32d416d365b8 Mon Sep 17 00:00:00 2001 From: Crash-- Date: Mon, 2 Oct 2023 15:07:08 +0200 Subject: [PATCH] feat: Set busy button after emptying a folder / trash --- .../modules/trash/components/DestroyConfirm.jsx | 6 +++++- .../trash/components/EmptyTrashConfirm.jsx | 15 ++++++++++++--- 2 files changed, 17 insertions(+), 4 deletions(-) diff --git a/src/drive/web/modules/trash/components/DestroyConfirm.jsx b/src/drive/web/modules/trash/components/DestroyConfirm.jsx index 622ba5c677..324f2e6283 100644 --- a/src/drive/web/modules/trash/components/DestroyConfirm.jsx +++ b/src/drive/web/modules/trash/components/DestroyConfirm.jsx @@ -1,4 +1,4 @@ -import React from 'react' +import React, { useState } from 'react' import { useClient } from 'cozy-client' import { ConfirmDialog } from 'cozy-ui/transpiled/react/CozyDialogs' @@ -11,6 +11,7 @@ import { deleteFilesPermanently } from 'drive/web/modules/actions/utils' import { Message } from 'drive/web/modules/confirm/Message' const DestroyConfirm = ({ t, files, onClose }) => { const client = useClient() + const [isLoading, setIsLoading] = useState(false) return ( {