From d7c8377d71cbb85848e97af15e358bae69385de8 Mon Sep 17 00:00:00 2001 From: artiume Date: Sun, 25 Sep 2022 17:36:47 -0400 Subject: [PATCH 1/3] Add metadata lost warning to renaming libraries --- src/controllers/dashboard/library.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/controllers/dashboard/library.js b/src/controllers/dashboard/library.js index 8a43d7b69..fc5a80cba 100644 --- a/src/controllers/dashboard/library.js +++ b/src/controllers/dashboard/library.js @@ -76,7 +76,8 @@ import cardBuilder from '../../components/cardbuilder/cardBuilder'; function renameVirtualFolder(page, virtualFolder) { import('../../components/prompt/prompt').then(({default: prompt}) => { prompt({ - label: globalize.translate('LabelNewName'), + title: globalize.translate('LabelNewName'), + label: globalize.translate('MessageAreYouSureYouWishToRenameMediaFolder'), confirmText: globalize.translate('ButtonRename') }).then(function (newName) { if (newName && newName != virtualFolder.Name) { From 2a0ba0f9e262631aea93f64061a301447f9ffe5b Mon Sep 17 00:00:00 2001 From: artiume Date: Sun, 25 Sep 2022 17:37:57 -0400 Subject: [PATCH 2/3] add string --- src/strings/en-us.json | 1 + 1 file changed, 1 insertion(+) diff --git a/src/strings/en-us.json b/src/strings/en-us.json index aad75e49b..921890abd 100644 --- a/src/strings/en-us.json +++ b/src/strings/en-us.json @@ -1036,6 +1036,7 @@ "MessageAlreadyInstalled": "This version is already installed.", "MessageAreYouSureDeleteSubtitles": "Are you sure you wish to delete this subtitle file?", "MessageAreYouSureYouWishToRemoveMediaFolder": "Are you sure you wish to remove this media folder?", + "MessageAreYouSureYouWishToRenameMediaFolder": "Are you sure you wish to rename this media folder? All metadata will be lost", "MessageBrowsePluginCatalog": "Browse our plugin catalog to view available plugins.", "MessageChangeRecordingPath": "Changing your recording folder will not migrate existing recordings from the old location to the new. You'll need to move them manually if desired.", "MessageConfirmAppExit": "Do you want to exit?", From 334dde82c93b505421ab51303a881f454ba97546 Mon Sep 17 00:00:00 2001 From: Bill Thornton Date: Thu, 20 Oct 2022 12:03:10 -0400 Subject: [PATCH 3/3] Update library rename warning --- src/controllers/dashboard/library.js | 4 ++-- src/strings/en-us.json | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/controllers/dashboard/library.js b/src/controllers/dashboard/library.js index fc5a80cba..b9907b66a 100644 --- a/src/controllers/dashboard/library.js +++ b/src/controllers/dashboard/library.js @@ -76,8 +76,8 @@ import cardBuilder from '../../components/cardbuilder/cardBuilder'; function renameVirtualFolder(page, virtualFolder) { import('../../components/prompt/prompt').then(({default: prompt}) => { prompt({ - title: globalize.translate('LabelNewName'), - label: globalize.translate('MessageAreYouSureYouWishToRenameMediaFolder'), + label: globalize.translate('LabelNewName'), + description: globalize.translate('MessageRenameMediaFolder'), confirmText: globalize.translate('ButtonRename') }).then(function (newName) { if (newName && newName != virtualFolder.Name) { diff --git a/src/strings/en-us.json b/src/strings/en-us.json index 921890abd..11c19a95d 100644 --- a/src/strings/en-us.json +++ b/src/strings/en-us.json @@ -1036,7 +1036,6 @@ "MessageAlreadyInstalled": "This version is already installed.", "MessageAreYouSureDeleteSubtitles": "Are you sure you wish to delete this subtitle file?", "MessageAreYouSureYouWishToRemoveMediaFolder": "Are you sure you wish to remove this media folder?", - "MessageAreYouSureYouWishToRenameMediaFolder": "Are you sure you wish to rename this media folder? All metadata will be lost", "MessageBrowsePluginCatalog": "Browse our plugin catalog to view available plugins.", "MessageChangeRecordingPath": "Changing your recording folder will not migrate existing recordings from the old location to the new. You'll need to move them manually if desired.", "MessageConfirmAppExit": "Do you want to exit?", @@ -1086,6 +1085,7 @@ "MessagePluginInstalled": "The plugin has been successfully installed. The server will need to be restarted for changes to take effect.", "MessagePluginInstallError": "An error occurred while installing the plugin.", "MessageReenableUser": "See below to reenable", + "MessageRenameMediaFolder": "Renaming a media library will cause all metadata to be lost, proceed with caution.", "MessageSent": "Message sent.", "MessageSyncPlayCreateGroupDenied": "Permission required to create a group.", "MessageSyncPlayDisabled": "SyncPlay disabled.",