Переход на quasar

This commit is contained in:
Book Pauk
2020-02-25 20:42:34 +07:00
parent e7c50b50ed
commit a9c2495349
2 changed files with 59 additions and 10 deletions

View File

@@ -350,12 +350,7 @@ class SettingsPage extends Vue {
async setDefaults() {
try {
if (await this.$confirm('Подтвердите установку настроек по умолчанию:', '', {
confirmButtonText: 'OK',
cancelButtonText: 'Отмена',
customClass: 'prompt-dialog',
type: 'warning'
})) {
if (await this.stdDialog.confirm('Подтвердите установку настроек по умолчанию:', ' ')) {
this.form = Object.assign({}, rstore.settingDefaults);
for (let prop in rstore.settingDefaults) {
this[prop] = this.form[prop];
@@ -518,7 +513,7 @@ class SettingsPage extends Vue {
}
keyHook(event) {
if (event.type == 'keydown' && event.code == 'Escape') {
if (!this.stdDialog.active && event.type == 'keydown' && event.code == 'Escape') {
this.close();
}
return true;