solved imports for alert, toast and confirm
This commit is contained in:
parent
4b42afcd7a
commit
86a9f4e36f
49 changed files with 417 additions and 550 deletions
|
@ -20,6 +20,7 @@ import '../listview/listview.css';
|
|||
import '../formdialog.css';
|
||||
import '../../assets/css/flexstyles.css';
|
||||
import toast from '../toast/toast';
|
||||
import alert from '../alert';
|
||||
|
||||
function onAddLibrary() {
|
||||
if (isCreating) {
|
||||
|
@ -27,11 +28,9 @@ import toast from '../toast/toast';
|
|||
}
|
||||
|
||||
if (pathInfos.length == 0) {
|
||||
import('../alert').then((alert) => {
|
||||
alert({
|
||||
text: globalize.translate('PleaseAddAtLeastOneFolder'),
|
||||
type: 'error'
|
||||
});
|
||||
alert({
|
||||
text: globalize.translate('PleaseAddAtLeastOneFolder'),
|
||||
type: 'error'
|
||||
});
|
||||
|
||||
return false;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue