Переход на quasar
This commit is contained in:
@@ -1,6 +1,5 @@
|
||||
<template>
|
||||
<div class="column no-wrap">
|
||||
<StdDialog ref="stdDialog"/>
|
||||
<div ref="header" class="header" v-show="toolBarActive">
|
||||
<div ref="buttons" class="row justify-between no-wrap">
|
||||
<button ref="loader" class="tool-button" :class="buttonActiveClass('loader')" @click="buttonClick('loader')" v-ripple>
|
||||
@@ -159,7 +158,6 @@ import Component from 'vue-class-component';
|
||||
import _ from 'lodash';
|
||||
import {Buffer} from 'safe-buffer';
|
||||
|
||||
import StdDialog from '../share/StdDialog.vue';
|
||||
import LoaderPage from './LoaderPage/LoaderPage.vue';
|
||||
import TextPage from './TextPage/TextPage.vue';
|
||||
import ProgressPage from './ProgressPage/ProgressPage.vue';
|
||||
@@ -180,7 +178,6 @@ import {versionHistory} from './versionHistory';
|
||||
|
||||
export default @Component({
|
||||
components: {
|
||||
StdDialog,
|
||||
LoaderPage,
|
||||
TextPage,
|
||||
ProgressPage,
|
||||
@@ -300,7 +297,6 @@ class Reader extends Vue {
|
||||
}
|
||||
|
||||
mounted() {
|
||||
this.stdDialog = this.$refs.stdDialog;
|
||||
this.updateHeaderMinWidth();
|
||||
|
||||
(async() => {
|
||||
@@ -1033,7 +1029,7 @@ class Reader extends Vue {
|
||||
} catch (e) {
|
||||
progress.hide(); this.progressActive = false;
|
||||
this.loaderActive = true;
|
||||
this.stdDialog.alert(e.message, 'Ошибка', {type: 'negative'});
|
||||
this.$root.stdDialog.alert(e.message, 'Ошибка', {type: 'negative'});
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1057,7 +1053,7 @@ class Reader extends Vue {
|
||||
} catch (e) {
|
||||
progress.hide(); this.progressActive = false;
|
||||
this.loaderActive = true;
|
||||
this.stdDialog.alert(e.message, 'Ошибка', {type: 'negative'});
|
||||
this.$root.stdDialog.alert(e.message, 'Ошибка', {type: 'negative'});
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1091,7 +1087,7 @@ class Reader extends Vue {
|
||||
|
||||
keyHook(event) {
|
||||
if (this.$root.rootRoute() == '/reader') {
|
||||
if (this.stdDialog.active)
|
||||
if (this.$root.stdDialog.active)
|
||||
return;
|
||||
|
||||
let handled = false;
|
||||
|
||||
Reference in New Issue
Block a user