add to current item

This commit is contained in:
j 2020-09-11 14:07:08 +02:00
commit 1c0462393c
3 changed files with 33 additions and 29 deletions

View file

@ -58,10 +58,16 @@ pandora.ui.mediaExistsDialog = function(options) {
return existing.indexOf(item.oshash) == -1;
});
that.close();
pandora.ui.addFilesDialog({
action: options.action,
items: items
}).open();
(pandora.user.ui.item ? pandora.api.get : Ox.noop)({
id: pandora.user.ui.item,
keys: ['editable']
}, function(result) {
pandora.ui.addFilesDialog({
action: options.action,
items: items,
editable: pandora.user.ui.item && result.data.editable
}).open();
})
}
})
];