Skip to content

Commit

Permalink
feat(ui): allow to export nodes dump
Browse files Browse the repository at this point in the history
  • Loading branch information
robertsLando committed Mar 2, 2021
1 parent 714702c commit 8a4a958
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/components/nodes-table/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,14 @@
</template>
<span>Export nodes.json Configuration</span>
</v-tooltip>
<v-tooltip bottom>
<template v-slot:activator="{ on }">
<v-btn text color="yellow" v-on="on" @click="exportDump">
DUMP
</v-btn>
</template>
<span>Export Nodes Dump (for debugging)</span>
</v-tooltip>
</v-col>
</v-row>
</template>
Expand Down
3 changes: 3 additions & 0 deletions src/components/nodes-table/nodes-table.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,9 @@ export default {
}
},
methods: {
exportDump () {
this.$listeners.export(this.nodes, 'nodes_dump', 'json')
},
toggleExpanded (item) {
this.expanded = this.expanded.includes(item)
? this.expanded.filter(i => i !== item)
Expand Down

0 comments on commit 8a4a958

Please sign in to comment.