This commit is contained in:
JFH
2020-12-30 17:23:14 +01:00
parent d37494c2af
commit d574e73ecb
5 changed files with 23 additions and 24 deletions

View File

@@ -2,9 +2,9 @@
import AlertDialog from 'elix/define/AlertDialog.js';
const dialog = new AlertDialog();
const seAlert = (type, text) => {
const seAlert = (text) => {
dialog.textContent = text;
dialog.choices = (type === 'alert') ? ['Ok'] : ['Cancel'];
dialog.choices = ['Ok'];
dialog.open();
};