2022-06-15 16:13:33 +00:00
|
|
|
import ListCard from '../list_card/list_card.vue'
|
2022-06-15 22:52:24 +00:00
|
|
|
import ListNew from '../list_new/list_new.vue'
|
2022-06-15 16:13:33 +00:00
|
|
|
|
|
|
|
const Lists = {
|
2022-06-15 22:52:24 +00:00
|
|
|
data () {
|
|
|
|
return {
|
|
|
|
isNew: false
|
|
|
|
}
|
|
|
|
},
|
2022-06-15 16:13:33 +00:00
|
|
|
components: {
|
2022-06-15 22:52:24 +00:00
|
|
|
ListCard,
|
|
|
|
ListNew
|
2022-06-15 16:13:33 +00:00
|
|
|
},
|
|
|
|
created () {
|
|
|
|
this.$store.dispatch('startFetchingLists')
|
|
|
|
},
|
|
|
|
computed: {
|
|
|
|
lists () {
|
|
|
|
return this.$store.state.api.lists
|
|
|
|
}
|
2022-06-15 22:52:24 +00:00
|
|
|
},
|
|
|
|
methods: {
|
|
|
|
cancelNewList () {
|
|
|
|
this.isNew = false
|
|
|
|
},
|
|
|
|
newList () {
|
|
|
|
this.isNew = true
|
|
|
|
}
|
2022-06-15 16:13:33 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
export default Lists
|