aboutsummaryrefslogtreecommitdiff
path: root/src/components/lists/lists.js
diff options
context:
space:
mode:
authorHJ <30-hj@users.noreply.git.pleroma.social>2022-08-09 21:46:55 +0000
committerHJ <30-hj@users.noreply.git.pleroma.social>2022-08-09 21:46:55 +0000
commit7773e7de6454a7ecd79b695ba27cccabeaca184e (patch)
treef14fc29167d7b2a21264351236f1721dd0794456 /src/components/lists/lists.js
parent2867c696293a96375f60898e10d7a702f60855c5 (diff)
parent891fbf996d7ddd415d99ea9065d54b0f493b5422 (diff)
Merge branch 'lists-implementation' into 'develop'
Add lists support See merge request pleroma/pleroma-fe!1584
Diffstat (limited to 'src/components/lists/lists.js')
-rw-r--r--src/components/lists/lists.js32
1 files changed, 32 insertions, 0 deletions
diff --git a/src/components/lists/lists.js b/src/components/lists/lists.js
new file mode 100644
index 00000000..791b99b2
--- /dev/null
+++ b/src/components/lists/lists.js
@@ -0,0 +1,32 @@
+import ListsCard from '../lists_card/lists_card.vue'
+import ListsNew from '../lists_new/lists_new.vue'
+
+const Lists = {
+ data () {
+ return {
+ isNew: false
+ }
+ },
+ components: {
+ ListsCard,
+ ListsNew
+ },
+ created () {
+ this.$store.dispatch('startFetchingLists')
+ },
+ computed: {
+ lists () {
+ return this.$store.state.lists.allLists
+ }
+ },
+ methods: {
+ cancelNewList () {
+ this.isNew = false
+ },
+ newList () {
+ this.isNew = true
+ }
+ }
+}
+
+export default Lists