-
Adam Procter authored
Plan is to undo all this now and start a global event and add in focus trap
Adam Procter authoredPlan is to undo all this now and start a global event and add in focus trap
ToolBar.vue 522 B
<template>
<div>
<button @click="addNode()">Add Node</button>
<button>Select Node</button>
<button>Make Connections</button>
<UploadMedia />
</div>
</template>
<script>
// @ is an alias to /src
import UploadMedia from '@/components/UploadMedia.vue'
export default {
name: 'ToolBar',
components: {
UploadMedia,
},
data() {
return {}
},
methods: {
addNode() {
this.$store.dispatch('addNode')
this.$emit('added-node')
},
},
}
</script>
<style scoped></style>