From a4c966c4ad6bb6fc6bfe937767cd9ffafcce0ee6 Mon Sep 17 00:00:00 2001 From: axolotle Date: Mon, 5 Jul 2021 18:27:29 +0200 Subject: [PATCH] add kit intro content from static page and update pages ids --- src/pages/kit/KitList.vue | 14 ++++++++++---- src/store/modules/pages.js | 6 ++++-- 2 files changed, 14 insertions(+), 6 deletions(-) diff --git a/src/pages/kit/KitList.vue b/src/pages/kit/KitList.vue index eb4e266..ed0377c 100644 --- a/src/pages/kit/KitList.vue +++ b/src/pages/kit/KitList.vue @@ -2,9 +2,8 @@
-
- FIXME Intro -
+
+
@@ -41,7 +40,8 @@ export default { data () { return { - search: '' + search: '', + intro: '' } }, @@ -53,6 +53,12 @@ export default { const search = this.search.toLowerCase() return this.sheets.filter(node => searchInNode(search, node)) } + }, + + async created () { + this.$store.dispatch('QUERY_PAGE', 'kit').then(page => { + this.intro = page.content + }) } } diff --git a/src/store/modules/pages.js b/src/store/modules/pages.js index 50e8482..808fc2b 100644 --- a/src/store/modules/pages.js +++ b/src/store/modules/pages.js @@ -6,9 +6,11 @@ export default { state: { welcome: undefined, intro: undefined, + kit: undefined, ids: { - welcome: 208, - intro: 207 + welcome: 263, + intro: 264, + kit: 209 }, visited: localStorage.getItem('visited') === 'true' },