Collect.vue 531 Bytes
Newer Older
1
2
<template>
  <ToolBar @added-node="addedNode" />
Adam Procter's avatar
Adam Procter committed
3
  <MyNodes :added="added" />
4
5
6
7
8
</template>

<script>
// @ is an alias to /src
import ToolBar from '@/components/ToolBar.vue'
9
import MyNodes from '@/components/MyNodes.vue'
10
11
12
13
14
15
16
17
18

export default {
  mounted() {
    this.$store.dispatch('getMicrocosm')
  },
  name: 'Collect',

  components: {
    ToolBar,
19
    MyNodes,
20
21
22
23
  },

  data() {
    return {
Adam Procter's avatar
Adam Procter committed
24
      added: false,
25
26
27
    }
  },

Adam Procter's avatar
Adam Procter committed
28
  methods: {
29
    addedNode() {
Adam Procter's avatar
Adam Procter committed
30
      this.added = !this.added
31
32
33
34
35
36
    },
  },
}
</script>

<style scoped></style>