avoid people accidentally adding itesm to current video

This commit is contained in:
j 2024-10-18 15:57:10 +01:00
parent e7ede6ade0
commit 9e6ecb5459

View file

@ -106,6 +106,13 @@ pandora.ui.addFilesDialog = function(options) {
});
var selectItems = [];
selectItems.push({
id: 'one',
title: Ox._(
options.items.length > 1 ? 'Create new {0} with multiple parts' : 'Create new {0}',
[pandora.site.itemName.singular.toLowerCase()]
)
});
if (pandora.user.ui.item && options.editable) {
selectItems.push({
id: 'add',
@ -124,13 +131,6 @@ pandora.ui.addFilesDialog = function(options) {
)
});
}
selectItems.push({
id: 'one',
title: Ox._(
options.items.length > 1 ? 'Create new {0} with multiple parts' : 'Create new {0}',
[pandora.site.itemName.singular.toLowerCase()]
)
});
var $select = Ox.Select({
items: selectItems,
width: 256