Explorar o código

К предыдущему

Book Pauk %!s(int64=5) %!d(string=hai) anos
pai
achega
c9419d99e6

+ 0 - 1
client/components/Reader/Reader.vue

@@ -512,7 +512,6 @@ class Reader extends Vue {
 
 
             const oldBook = this.mostRecentBookReactive;
             const oldBook = this.mostRecentBookReactive;
             const newBook = bookManager.mostRecentBook();
             const newBook = bookManager.mostRecentBook();
-console.log(oldBook.bookPos, newBook.bookPos);
             if (oldBook && newBook) {
             if (oldBook && newBook) {
                 if (oldBook.key != newBook.key) {
                 if (oldBook.key != newBook.key) {
                     this.loadingBook = true;
                     this.loadingBook = true;

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

@@ -392,10 +392,10 @@ class ServerStorage extends Vue {
 
 
         const bm = bookManager;
         const bm = bookManager;
 
 
-        if (!bookManager.loaded) {
+        /*if (!bookManager.loaded) {
             this.warning('Функции сохранения на сервер пока недоступны');
             this.warning('Функции сохранения на сервер пока недоступны');
             return;
             return;
-        }
+        }*/
 
 
         //несколько замудреная инициализация oldRecent
         //несколько замудреная инициализация oldRecent
         if (!this.oldRecent) {
         if (!this.oldRecent) {
@@ -469,7 +469,6 @@ class ServerStorage extends Vue {
                     this.recentDiff = null;
                     this.recentDiff = null;
                     await bm.setRecentRev(bm.recentRev + 1);
                     await bm.setRecentRev(bm.recentRev + 1);
                     await bm.setRecentDiffRev(bm.recentDiffRev + 1);
                     await bm.setRecentDiffRev(bm.recentDiffRev + 1);
-console.log('saved1');                    
                 }
                 }
             } else {//сохраняем только дифф
             } else {//сохраняем только дифф
                 let result = {state: ''};
                 let result = {state: ''};
@@ -486,7 +485,6 @@ console.log('saved1');
                 } else if (result.state == 'success') {
                 } else if (result.state == 'success') {
                     await bm.setRecentDiffRev(bm.recentDiffRev + 1);
                     await bm.setRecentDiffRev(bm.recentDiffRev + 1);
                 }
                 }
-console.log('saved2');                    
             }
             }
         } finally {
         } finally {
             this.savingRecent = false;
             this.savingRecent = false;