Переход на quasar
This commit is contained in:
@@ -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;
|
||||||
|
|||||||
Reference in New Issue
Block a user