Переход на quasar

This commit is contained in:
Book Pauk
2020-02-26 13:42:22 +07:00
parent 6418e8ee30
commit badecd1d81

View File

@@ -303,7 +303,7 @@ class RecentBooksPage extends Vue {
let errMes = e.message; let errMes = e.message;
if (errMes.indexOf('404') >= 0) if (errMes.indexOf('404') >= 0)
errMes = 'Файл не найден на сервере (возможно был удален как устаревший)'; errMes = 'Файл не найден на сервере (возможно был удален как устаревший)';
this.$alert(errMes, 'Ошибка', {type: 'error'}); this.$root.stdDialog.alert(errMes, 'Ошибка', {type: 'negative'});
} }
} }
@@ -340,7 +340,7 @@ class RecentBooksPage extends Vue {
} }
keyHook(event) { keyHook(event) {
if (event.type == 'keydown' && event.code == 'Escape') { if (!this.$root.stdDialog.active && event.type == 'keydown' && event.code == 'Escape') {
this.close(); this.close();
} }
return true; return true;