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

29 lines
435 B
JavaScript
Raw Normal View History

2022-08-06 17:26:43 +03:00
import ListsCard from '../lists_card/lists_card.vue'
2026-01-29 20:44:55 +02:00
import { useListsStore } from 'src/stores/lists.js'
2026-01-29 20:40:00 +02:00
2022-08-06 17:26:43 +03:00
const Lists = {
2026-01-06 16:22:52 +02:00
data() {
2022-08-06 17:26:43 +03:00
return {
2026-01-06 16:22:52 +02:00
isNew: false,
2022-08-06 17:26:43 +03:00
}
},
components: {
2026-01-06 16:22:52 +02:00
ListsCard,
2022-08-06 17:26:43 +03:00
},
computed: {
2026-01-06 16:22:52 +02:00
lists() {
2023-04-06 22:13:30 -06:00
return useListsStore().allLists
2026-01-06 16:22:52 +02:00
},
2022-08-06 17:26:43 +03:00
},
methods: {
2026-01-06 16:22:52 +02:00
cancelNewList() {
2022-08-06 17:26:43 +03:00
this.isNew = false
},
2026-01-06 16:22:52 +02:00
newList() {
2022-08-06 17:26:43 +03:00
this.isNew = true
2026-01-06 16:22:52 +02:00
},
},
2022-08-06 17:26:43 +03:00
}
export default Lists