Преглед на файлове

Мелкие поправки

Book Pauk преди 6 години
родител
ревизия
e0ed369df2
променени са 2 файла, в които са добавени 10 реда и са изтрити 8 реда
  1. 2 2
      client/components/Reader/Reader.vue
  2. 8 6
      client/components/Reader/TextPage/TextPage.vue

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

@@ -123,8 +123,8 @@ class Reader extends Vue {
             result = 'TextPage';
 
         if (!result) {
-            //this.commit('reader/setLoaderActive', true);
-            //result = 'LoaderPage';
+            this.commit('reader/setLoaderActive', true);
+            result = 'LoaderPage';
         }
 
         if (result != 'TextPage') {

+ 8 - 6
client/components/Reader/TextPage/TextPage.vue

@@ -19,6 +19,8 @@ export default @Component({
 })
 class TextPage extends Vue {
     meta = null;
+    fb2 = null;
+
     items = null;
 
     created() {
@@ -42,14 +44,14 @@ class TextPage extends Vue {
                 }
                 this.book = await bookManager.getBook(last);
                 this.meta = bookManager.metaOnly(this.book);
-                const fb2 = this.meta.fb2;
+                this.fb2 = this.meta.fb2;
                 this.$root.$emit('set-app-title', _.compact([
-                    fb2.lastName,
-                    fb2.middleName,
-                    fb2.firstName,
+                    this.fb2.lastName,
+                    this.fb2.middleName,
+                    this.fb2.firstName,
                     '-',
-                    fb2.bookTitle
-                ]).join(' '));
+                    this.fb2.bookTitle
+                ]).join(' '));                
 //
                 let lines = [];
                 let para = this.book.parsed.para;