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:
parent
c7caf8134d
commit
4b42afcd7a
11 changed files with 38 additions and 59 deletions
|
@ -19,6 +19,7 @@ import '../formdialog.css';
|
|||
import 'material-design-icons-iconfont';
|
||||
import '../cardbuilder/card.css';
|
||||
import ServerConnections from '../ServerConnections';
|
||||
import toast from '../toast/toast';
|
||||
|
||||
const enableFocusTransform = !browser.slow && !browser.edge;
|
||||
|
||||
|
@ -68,9 +69,7 @@ import ServerConnections from '../ServerConnections';
|
|||
}
|
||||
|
||||
if (!hasId && !lookupInfo.Name) {
|
||||
import('../toast/toast').then((toast) => {
|
||||
toast(globalize.translate('PleaseEnterNameOrId'));
|
||||
});
|
||||
toast(globalize.translate('PleaseEnterNameOrId'));
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue