From 3898e40fa49a288b7cd9ef35eb7be8990efc6e9c Mon Sep 17 00:00:00 2001 From: Charles Morgan Date: Sun, 16 May 2021 14:28:52 -0400 Subject: [PATCH] Add list of files being deleted to delete modal (#3299) Shows the first 15 file names being deleted. If more then 15, the first 15 will be shown then the last line will be ` + ## other(s)` --- .../components/server/files/MassActionsBar.tsx | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/resources/scripts/components/server/files/MassActionsBar.tsx b/resources/scripts/components/server/files/MassActionsBar.tsx index 1c81573cc..5d1145fb4 100644 --- a/resources/scripts/components/server/files/MassActionsBar.tsx +++ b/resources/scripts/components/server/files/MassActionsBar.tsx @@ -74,7 +74,18 @@ const MassActionsBar = () => { onConfirmed={onClickConfirmDeletion} onModalDismissed={() => setShowConfirm(false)} > - Deleting files is a permanent operation, you cannot undo this action. + Are you sure you want to delete {selectedFiles.length} file(s)? +
+ Deleting the file(s) listed below is a permanent operation, you cannot undo this action. +
+ + { selectedFiles.slice(0, 15).map(file => ( +
  • {file}
  • )) + } + { selectedFiles.length > 15 && +
  • + {selectedFiles.length - 15} other(s)
  • + } +
    {showMove &&