1
0
Fork 0
mirror of https://github.com/jellyfin/jellyfin-web synced 2025-03-30 19:56:21 +00:00

update action sheet

This commit is contained in:
Luke Pulverenti 2015-10-18 17:41:39 -04:00
parent 81d936ff1c
commit 62e03ef0be
4 changed files with 125 additions and 104 deletions

View file

@ -680,6 +680,15 @@
});
},
supportsEditing: function (itemType) {
if (itemType == "UserRootFolder" || /*itemType == "CollectionFolder" ||*/ itemType == "UserView") {
return false;
}
return true;
},
getMoreCommands: function (item, user) {
var commands = [];
@ -701,7 +710,9 @@
if (user.Policy.IsAdministrator) {
commands.push('edit');
if (LibraryBrowser.supportsEditing(item.Type)) {
commands.push('edit');
}
if (item.MediaType == 'Video' && item.Type != 'TvChannel' && item.Type != 'Program' && item.LocationType != 'Virtual') {
commands.push('editsubtitles');
@ -1469,7 +1480,9 @@
// itemCommands.push('playmenu');
//}
itemCommands.push('edit');
if (LibraryBrowser.supportsEditing(item.Type)) {
itemCommands.push('edit');
}
if (item.LocalTrailerCount) {
itemCommands.push('trailer');