Quellcode durchsuchen

Поправка для автоматического отображения справки

Book Pauk vor 4 Jahren
Ursprung
Commit
5b52f48bce

+ 3 - 1
client/components/ExternalLibs/BookmarkSettings/BookmarkSettings.vue

@@ -285,7 +285,9 @@ class BookmarkSettings extends BookmarkSettingsProps {
         });
         });
 
 
         if (result && result.value && result.value.toLowerCase() == 'да') {
         if (result && result.value && result.value.toLowerCase() == 'да') {
-            this.$emit('do-action', {action: 'setLibs', data: _.cloneDeep(rstore.libsDefaults)});
+            this.$emit('do-action', {action: 'setLibs', data: _.cloneDeep(
+                Object.assign({helpShowed: true}, rstore.libsDefaults)
+            )});
         }
         }
     }
     }
 
 

+ 8 - 0
client/components/ExternalLibs/ExternalLibs.vue

@@ -371,6 +371,14 @@ class ExternalLibs extends Vue {
     loadLibs() {
     loadLibs() {
         const libs = this.libs;
         const libs = this.libs;
 
 
+        if (!libs.helpShowed) {
+            this.showHelp();
+            (async() => {
+                await utils.sleep(1000);
+                this.commitProp('helpShowed', true);
+            })();
+        }
+
         this.selectedLink = libs.startLink;
         this.selectedLink = libs.startLink;
         this.closeAfterSubmit = libs.closeAfterSubmit || false;
         this.closeAfterSubmit = libs.closeAfterSubmit || false;
         this.openInFrameOnEnter = libs.openInFrameOnEnter || false;
         this.openInFrameOnEnter = libs.openInFrameOnEnter || false;