Show popup for Rename File from Parent Metadata

Closes #3230
This commit is contained in:
Dan Stillman 2024-07-09 04:42:50 -04:00
parent af1a4941ce
commit da1599ca34
2 changed files with 10 additions and 1 deletions

View file

@ -5640,6 +5640,9 @@ var ZoteroPane = new function()
}
var items = this.getSelectedItems();
if (!items.length) return;
var progressWin = new Zotero.ProgressWindow();
for (var i=0; i<items.length; i++) {
var item = items[i];
@ -5677,9 +5680,13 @@ var ZoteroPane = new function()
item.setField('title', newName);
await item.saveTx();
}
let str = await document.l10n.formatValue('file-renaming-file-renamed-to', { filename: newName });
progressWin.addLines(str, item.getItemTypeIconName());
progressWin.show();
}
return true;
progressWin.startCloseTimer(4000);
};

View file

@ -122,6 +122,8 @@ item-menu-option-view-online =
item-button-view-online =
.tooltiptext = {view-online}
file-renaming-file-renamed-to = File renamed to { $filename }
itembox-button-options =
.tooltiptext = Open context menu
itembox-button-merge =