Add metadata lost warning to renaming libraries

This commit is contained in:
artiume 2022-09-25 17:36:47 -04:00 committed by GitHub
parent 9e2d5fb932
commit d7c8377d71
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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) {