Rename class name for collectionEditor & add method show

This commit is contained in:
grafixeyehero 2022-08-06 02:50:41 +03:00
parent 87ebe89196
commit bdff9b14f1
4 changed files with 12 additions and 9 deletions

View file

@ -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));