merge
This commit is contained in:
11
src/editor/dialogs/seAlertDialog.js
Normal file
11
src/editor/dialogs/seAlertDialog.js
Normal file
@@ -0,0 +1,11 @@
|
||||
// eslint-disable-next-line node/no-unpublished-import
|
||||
import AlertDialog from 'elix/define/AlertDialog.js';
|
||||
|
||||
const dialog = new AlertDialog();
|
||||
const seAlert = (type, text) => {
|
||||
dialog.textContent = text;
|
||||
dialog.choices = (type === 'alert') ? ['Ok'] : ['Cancel'];
|
||||
dialog.open();
|
||||
};
|
||||
|
||||
window.seAlert = seAlert;
|
||||
Reference in New Issue
Block a user