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

Merge tag '0.1.7' into develop

0.1.7
Book Pauk преди 6 години
родител
ревизия
b7875644bc
променени са 2 файла, в които са добавени 7 реда и са изтрити 3 реда
  1. 6 2
      client/components/Reader/Reader.vue
  2. 1 1
      package.json

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

@@ -139,6 +139,12 @@ export default @Component({
             this.showClickMapPage = newValue.showClickMapPage;
             this.updateRoute();
         },
+        loaderActive: function(newValue) {
+            const recent = this.mostRecentBook();
+            if (!newValue && !this.loading && recent && !bookManager.hasBookParsed(recent)) {
+                this.loadBook(recent);
+            }
+        },
     },
 })
 class Reader extends Vue {
@@ -205,8 +211,6 @@ class Reader extends Vue {
             if (this.$root.rootRoute == '/reader') {
                 if (this.routeParamUrl) {
                     this.loadBook({url: this.routeParamUrl, bookPos: this.routeParamPos});
-                } else if (this.mostRecentBook()) {
-                    this.loadBook({url: this.mostRecentBook().url});
                 } else {
                     this.loaderActive = true;
                 }

+ 1 - 1
package.json

@@ -1,6 +1,6 @@
 {
   "name": "Liberama",
-  "version": "0.1.6",
+  "version": "0.1.7",
   "engines": {
     "node": ">=10.0.0"
   },