Explorar o código

Небольшие доработки

Book Pauk %!s(int64=4) %!d(string=hai) anos
pai
achega
8b59c72848
Modificáronse 1 ficheiros con 3 adicións e 2 borrados
  1. 3 2
      client/components/ExternalLibs/ExternalLibs.vue

+ 3 - 2
client/components/ExternalLibs/ExternalLibs.vue

@@ -410,11 +410,12 @@ class ExternalLibs extends Vue {
     }
 
     updateBookmarkLink() {
-        this.bookmarkLink = this.defaultRootLink;
-        const index = this.getRootIndexByUrl(rstore.libsDefaults.groups, this.bookmarkLink);
+        const index = this.getRootIndexByUrl(rstore.libsDefaults.groups, this.defaultRootLink);
         if (index >= 0) {
+            this.bookmarkLink = rstore.libsDefaults.groups[index].s;
             this.bookmarkDesc = this.getCommentByLink(rstore.libsDefaults.groups[index].list, this.bookmarkLink);
         } else {
+            this.bookmarkLink = '';
             this.bookmarkDesc = '';
         }
     }