Rename class name for collectionEditor & add method show
This commit is contained in:
parent
87ebe89196
commit
bdff9b14f1
4 changed files with 12 additions and 9 deletions
|
@ -318,8 +318,9 @@ import toast from './toast/toast';
|
|||
return new Promise(function (resolve, reject) {
|
||||
switch (id) {
|
||||
case 'addtocollection':
|
||||
import('./collectionEditor/collectionEditor').then(({default: collectionEditor}) => {
|
||||
new collectionEditor({
|
||||
import('./collectionEditor/collectionEditor').then(({default: CollectionEditor}) => {
|
||||
const collectionEditor = new CollectionEditor();
|
||||
collectionEditor.show({
|
||||
items: [itemId],
|
||||
serverId: serverId
|
||||
}).then(getResolveFunction(resolve, id, true), getResolveFunction(resolve, id));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue