Skip to content

Commit

Permalink
feat(files_trashbin): improve wordings
Browse files Browse the repository at this point in the history
Signed-off-by: skjnldsv <[email protected]>
  • Loading branch information
skjnldsv committed Dec 12, 2024
1 parent 5b64def commit 2ef2fcd
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions apps/files_trashbin/src/fileListActions/emptyTrashAction.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,11 @@ import { emit } from '@nextcloud/event-bus'
const emptyTrash = async (): Promise<boolean> => {
try {
await axios.delete(generateRemoteUrl('dav') + `/trashbin/${getCurrentUser()?.uid}/trash`)
showSuccess(t('files_trashbin', 'Permanently deleted all previously deleted files'))
showSuccess(t('files_trashbin', 'All files have been permanently deleted'))
return true
} catch (error) {
showError(t('files_trashbin', 'Failed to delete all previously deleted files'))
logger.error('Failed to delete all previously deleted files', { error })
showError(t('files_trashbin', 'Failed to empty deleted files'))
logger.error('Failed to empty deleted files', { error })
return false
}
}
Expand All @@ -50,7 +50,7 @@ export const emptyTrashAction = new FileListAction({
const dialog = getDialogBuilder(t('files_trashbin', 'Confirm permanent deletion'))
.setSeverity(DialogSeverity.Warning)
// TODO Add note for groupfolders
.setText(t('files_trashbin', 'Are you sure you want to permanently delete all previously deleted files? This cannot be undone.'))
.setText(t('files_trashbin', 'Are you sure you want to permanently delete all files and folders in the trash? This cannot be undone.'))
.setButtons([
{
label: t('files_trashbin', 'Cancel'),
Expand Down

0 comments on commit 2ef2fcd

Please sign in to comment.