Clarify Playlist and Collections delete prompt (#7534)
* Clarify Collections delete prompt Fixes #5040 * Playlist too * Simplify messages
This commit is contained in:
@@ -22,6 +22,24 @@ function getDeletionConfirmContent(item) {
|
||||
};
|
||||
}
|
||||
|
||||
if (item.Type === BaseItemKind.BoxSet) {
|
||||
return {
|
||||
title: globalize.translate('HeaderDeleteCollection'),
|
||||
text: globalize.translate('ConfirmDeleteCollection'),
|
||||
confirmText: globalize.translate('Delete'),
|
||||
primary: 'delete'
|
||||
};
|
||||
}
|
||||
|
||||
if (item.Type === BaseItemKind.Playlist) {
|
||||
return {
|
||||
title: globalize.translate('HeaderDeletePlaylist'),
|
||||
text: globalize.translate('ConfirmDeletePlaylist'),
|
||||
confirmText: globalize.translate('Delete'),
|
||||
primary: 'delete'
|
||||
};
|
||||
}
|
||||
|
||||
return {
|
||||
title: globalize.translate('HeaderDeleteItem'),
|
||||
text: globalize.translate('ConfirmDeleteItem'),
|
||||
|
||||
@@ -178,6 +178,8 @@
|
||||
"ConfigureDateAdded": "Set up how metadata for 'Date added' is determined in the Dashboard > Libraries > Display",
|
||||
"ConfirmDeleteImage": "Delete image?",
|
||||
"ConfirmDeleteItem": "Deleting this item will delete it from both the file system and your media library. Are you sure you wish to continue?",
|
||||
"ConfirmDeleteCollection": "Are you sure you wish to delete this collection?",
|
||||
"ConfirmDeletePlaylist": "Are you sure you wish to delete this playlist?",
|
||||
"ConfirmDeleteSeries": "Deleting this series will delete ALL {0} episodes from both the file system and your media library. Are you sure you wish to continue?",
|
||||
"ConfirmDeleteItems": "Deleting these items will delete them from both the file system and your media library. Are you sure you wish to continue?",
|
||||
"ConfirmDeleteLyrics": "Deleting these lyrics will delete them from both the file system and your media library. Are you sure you wish to continue?",
|
||||
@@ -416,6 +418,8 @@
|
||||
"HeaderDeleteDevice": "Delete Device",
|
||||
"HeaderDeleteDevices": "Delete All Devices",
|
||||
"HeaderDeleteItem": "Delete Item",
|
||||
"HeaderDeleteCollection": "Delete Collection",
|
||||
"HeaderDeletePlaylist": "Delete Playlist",
|
||||
"HeaderDeleteSeries": "Delete Series",
|
||||
"HeaderDeleteItems": "Delete Items",
|
||||
"HeaderDeleteLyrics": "Delete Lyrics",
|
||||
|
||||
Reference in New Issue
Block a user