Skip to content

Commit 769f3de

Browse files
authored
[5.4] Media Delete Confirmation message (#45631)
* [5.4] Media Delete Confirmation message This PR introduces a dedicated delete confirmation message for com_media instead of the global delete message. The reason is to further clarify/warn that deleting a folder will delete all the contents of that folder. Unlike the generic message which just talks about deleting the selected item. --------- Signed-off-by: BrianTeeman <[email protected]>
1 parent fdb9e17 commit 769f3de

File tree

4 files changed

+4
-2
lines changed

4 files changed

+4
-2
lines changed

administrator/components/com_media/resources/scripts/components/modals/confirm-delete-modal.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
<template #body>
1818
<div class="p-3">
1919
<div class="desc">
20-
{{ translate('JGLOBAL_CONFIRM_DELETE') }}
20+
{{ translate('COM_MEDIA_DELETE') }}
2121
</div>
2222
</div>
2323
</template>

administrator/components/com_media/tmpl/media/default_texts.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@
3232
'COM_MEDIA_CREATE_NEW_FOLDER_RELATIVE_PATH_ERROR',
3333
'COM_MEDIA_CREATE_NEW_FOLDER_UNEXPECTED_CHARACTER',
3434
'COM_MEDIA_DECREASE_GRID',
35+
'COM_MEDIA_DELETE',
3536
'COM_MEDIA_DELETE_ERROR',
3637
'COM_MEDIA_DELETE_SUCCESS',
3738
'COM_MEDIA_DROP_FILE',
@@ -79,7 +80,6 @@
7980
'JACTION_CREATE',
8081
'JAPPLY',
8182
'JCANCEL',
82-
'JGLOBAL_CONFIRM_DELETE',
8383
'JGLOBAL_NO_MATCHING_RESULTS',
8484
'JLIB_FORM_FIELD_REQUIRED_VALUE',
8585
'MESSAGE',

administrator/language/en-GB/com_media.ini

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ COM_MEDIA_CREATE_NEW_FOLDER_RELATIVE_PATH_ERROR="Use of relative paths not permi
2929
COM_MEDIA_CREATE_NEW_FOLDER_SUCCESS="Folder created."
3030
COM_MEDIA_CREATE_NEW_FOLDER_UNEXPECTED_CHARACTER="Invalid folder name. Please choose a folder name with a-z, A-Z, 0-9, ., - and _."
3131
COM_MEDIA_DECREASE_GRID="Decrease grid size"
32+
COM_MEDIA_DELETE="Are you sure you want to delete the selected item(s)? This action is permanent and cannot be undone. If you delete a folder, all of its contents will be permanently removed as well."
3233
COM_MEDIA_DELETE_ERROR="Error deleting the item."
3334
COM_MEDIA_DELETE_NOT_POSSIBLE="Delete not possible!"
3435
COM_MEDIA_DELETE_SUCCESS="Item deleted."

language/en-GB/com_media.ini

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ COM_MEDIA_CREATE_NEW_FOLDER_ERROR="Error creating folder."
3434
COM_MEDIA_CREATE_NEW_FOLDER_SUCCESS="Folder created."
3535
COM_MEDIA_CURRENT_PROGRESS="Current progress"
3636
COM_MEDIA_DECREASE_GRID="Decrease grid size"
37+
COM_MEDIA_DELETE="Are you sure you want to delete the selected item(s)? This action is permanent and cannot be undone. If you delete a folder, all of its contents will be permanently removed as well."
3738
COM_MEDIA_DELETE_ERROR="Error deleting the item."
3839
COM_MEDIA_DELETE_NOT_POSSIBLE="Delete not possible!"
3940
COM_MEDIA_DELETE_SUCCESS="Item deleted."

0 commit comments

Comments
 (0)