pleroma-fe/src/components/lists/lists.js

28 lines
432 B
JavaScript
Raw Normal View History

2023-04-06 22:13:30 -06:00
import { useListsStore } from '../../stores/lists'
2022-08-06 17:26:43 +03:00
import ListsCard from '../lists_card/lists_card.vue'
const Lists = {
data () {
return {
isNew: false
}
},
components: {
2022-08-17 20:21:10 +03:00
ListsCard
2022-08-06 17:26:43 +03:00
},
computed: {
lists () {
2023-04-06 22:13:30 -06:00
return useListsStore().allLists
2022-08-06 17:26:43 +03:00
}
},
methods: {
cancelNewList () {
this.isNew = false
},
newList () {
this.isNew = true
}
}
}
export default Lists