Add list creation functionality
This commit is contained in:
parent
3d18dd7e47
commit
bacb6c8fb3
6 changed files with 258 additions and 3 deletions
|
@ -1,8 +1,15 @@
|
|||
import ListCard from '../list_card/list_card.vue'
|
||||
import ListNew from '../list_new/list_new.vue'
|
||||
|
||||
const Lists = {
|
||||
data () {
|
||||
return {
|
||||
isNew: false
|
||||
}
|
||||
},
|
||||
components: {
|
||||
ListCard
|
||||
ListCard,
|
||||
ListNew
|
||||
},
|
||||
created () {
|
||||
this.$store.dispatch('startFetchingLists')
|
||||
|
@ -11,6 +18,14 @@ const Lists = {
|
|||
lists () {
|
||||
return this.$store.state.api.lists
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
cancelNewList () {
|
||||
this.isNew = false
|
||||
},
|
||||
newList () {
|
||||
this.isNew = true
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue