You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@skywalking.apache.org by GitBox <gi...@apache.org> on 2020/04/23 09:27:09 UTC

[GitHub] [skywalking-rocketbot-ui] Fine0830 commented on a change in pull request #288: Feat:Import and export the configuration file for the dashboard layout

Fine0830 commented on a change in pull request #288:
URL: https://github.com/apache/skywalking-rocketbot-ui/pull/288#discussion_r413659335



##########
File path: src/views/components/dashboard/tool-group.vue
##########
@@ -101,6 +115,31 @@ limitations under the License. -->
       this.handleHide();
       this.template = false;
     }
+    private exportLayoutData() {
+      const data = JSON.stringify(this.rocketComps.tree);
+      const tagA = document.createElement('a');
+      tagA.download = 'dashboard.json';
+      tagA.style.display = 'none';
+      let blob = new Blob([data]);
+      tagA.href = URL.createObjectURL(blob);
+      document.body.appendChild(tagA);
+      tagA.click();
+      document.body.removeChild(tagA);
+    }
+    private importLayoutData() {
+      let obj: any = document.getElementById('file');

Review comment:
       `let` should be `const`. 




----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org