Skip to content

Commit

Permalink
feat(ui): export node json for debug reasons (#76)
Browse files Browse the repository at this point in the history
  • Loading branch information
varet80 authored Dec 15, 2020
1 parent 962f212 commit 05e30d2
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions src/components/ControlPanel.vue
Original file line number Diff line number Diff line change
Expand Up @@ -153,6 +153,10 @@
}}</v-subheader
>
</v-flex>
<v-btn text @click="exportNode">
Export
<v-icon right dark color="primary">file_download</v-icon>
</v-btn>
</v-layout>

<v-layout row>
Expand Down Expand Up @@ -971,6 +975,13 @@ export default {
console.log(error)
})
},
exportNode () {
this.$listeners.export(
this.selectedNode,
'node_' + this.selectedNode.id,
'json'
)
},
async importScenes () {
if (
await this.$listeners.showConfirm(
Expand Down

0 comments on commit 05e30d2

Please sign in to comment.