Pārlūkot izejas kodu

Переход на quasar

Book Pauk 5 gadi atpakaļ
vecāks
revīzija
badecd1d81

+ 2 - 2
client/components/Reader/RecentBooksPage/RecentBooksPage.vue

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