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

fix some toast imports

This commit is contained in:
vitorsemeano 2020-10-18 14:19:41 +01:00
parent c7caf8134d
commit 4b42afcd7a
11 changed files with 38 additions and 59 deletions

View file

@ -17,6 +17,7 @@ import '../../elements/emby-button/paper-icon-button-light';
import '../formdialog.css';
import '../../elements/emby-toggle/emby-toggle';
import '../../assets/css/flexstyles.css';
import toast from '../toast/toast';
function onEditLibrary() {
if (isCreating) {
@ -47,9 +48,7 @@ import '../../assets/css/flexstyles.css';
hasChanges = true;
refreshLibraryFromServer(page);
}, () => {
import('../toast/toast').then((toast) => {
toast(globalize.translate('ErrorAddingMediaPathToVirtualFolder'));
});
toast(globalize.translate('ErrorAddingMediaPathToVirtualFolder'));
});
}
@ -62,9 +61,7 @@ import '../../assets/css/flexstyles.css';
hasChanges = true;
refreshLibraryFromServer(page);
}, () => {
import('../toast/toast').then((toast) => {
toast(globalize.translate('ErrorAddingMediaPathToVirtualFolder'));
});
toast(globalize.translate('ErrorAddingMediaPathToVirtualFolder'));
});
}
@ -84,9 +81,7 @@ import '../../assets/css/flexstyles.css';
hasChanges = true;
refreshLibraryFromServer(dom.parentWithClass(button, 'dlg-libraryeditor'));
}, () => {
import('../toast/toast').then((toast) => {
toast(globalize.translate('ErrorDefault'));
});
toast(globalize.translate('ErrorDefault'));
});
});
});