mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
add image editing to library setup
This commit is contained in:
parent
8a2b6dbea0
commit
e6020421a1
77 changed files with 338 additions and 109 deletions
|
@ -104,13 +104,13 @@
|
|||
menuItems.push({
|
||||
name: Globalize.translate('ButtonChangeContentType'),
|
||||
id: 'changetype',
|
||||
ironIcon: 'folder'
|
||||
ironIcon: 'videocam'
|
||||
});
|
||||
|
||||
menuItems.push({
|
||||
name: Globalize.translate('ButtonEdit'),
|
||||
name: Globalize.translate('ButtonManageFolders'),
|
||||
id: 'edit',
|
||||
ironIcon: 'mode-edit'
|
||||
ironIcon: 'folder-open'
|
||||
});
|
||||
|
||||
menuItems.push({
|
||||
|
@ -205,7 +205,17 @@
|
|||
var card = $(this).parents('.card')[0];
|
||||
var index = parseInt(card.getAttribute('data-index'));
|
||||
var virtualFolder = virtualFolders[index];
|
||||
editVirtualFolder(page, virtualFolder);
|
||||
|
||||
require(['components/imageeditor/imageeditor'], function () {
|
||||
|
||||
ImageEditor.show(virtualFolder.ItemId, {
|
||||
theme: 'a'
|
||||
}).done(function (hasChanged) {
|
||||
if (hasChanged) {
|
||||
reloadLibrary(page);
|
||||
}
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
Dashboard.hideLoadingMsg();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue