Skip to content
This repository was archived by the owner on Dec 18, 2022. It is now read-only.

Commit b88c7cc

Browse files
committed
watch changes on header and donations
1 parent 494f145 commit b88c7cc

File tree

4 files changed

+11
-16
lines changed

4 files changed

+11
-16
lines changed

components/layout/Donations.vue

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,11 @@ export default {
4141
info: context.$store.state.donations.info,
4242
};
4343
},
44+
watch: {
45+
$route() {
46+
this.info = this.$store.state.donations.info;
47+
}
48+
},
4449
setup() {
4550
const showDialog = ref();
4651

components/layout/Header.vue

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,12 @@ export default {
106106
logo: context.$store.state.menu.logo
107107
};
108108
},
109+
watch: {
110+
$route() {
111+
this.menu = this.$store.state.menu.items;
112+
this.logo = this.$store.state.menu.logo;
113+
}
114+
},
109115
computed: {
110116
availableLocales() {
111117
return this.$i18n.locales.filter((i) => i.code !== this.$i18n.locale);

package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@
1414
"@tailwindcss/forms": "^0.3.2",
1515
"@tailwindcss/typography": "^0.4.0",
1616
"@vue/composition-api": "^1.0.0-rc.6",
17-
"components-helpdev-storyblok": "HelpDev/Storyblok-Components#1.0.7",
1817
"heroicons": "^1.0.0",
1918
"nuxt": "^2.15.4",
2019
"nuxt-i18n": "^6.24.0",

yarn.lock

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -4632,21 +4632,6 @@ component-emitter@^1.2.1:
46324632
resolved "https://registry.yarnpkg.com/component-emitter/-/component-emitter-1.3.0.tgz#16e4070fba8ae29b679f2215853ee181ab2eabc0"
46334633
integrity sha512-Rd3se6QB+sO1TwqZjscQrurpEPIfO0/yYnSin6Q/rD3mOutHvUrCAhJub3r90uNb+SESBuE0QYoB90YdfatsRg==
46344634

4635-
components-helpdev-storyblok@HelpDev/Storyblok-Components#1.0.7:
4636-
version "1.0.1"
4637-
resolved "https://codeload.github.com/HelpDev/Storyblok-Components/tar.gz/cbc2514af8afd7700418330b16fc83ac1a608630"
4638-
dependencies:
4639-
"@nuxtjs/svg" "^0.1.12"
4640-
"@tailwindcss/aspect-ratio" "^0.2.0"
4641-
"@tailwindcss/forms" "^0.3.2"
4642-
"@tailwindcss/typography" "^0.4.0"
4643-
"@vue/composition-api" "^1.0.0-rc.6"
4644-
heroicons "^1.0.0"
4645-
nuxt "^2.15.4"
4646-
nuxt-i18n "^6.24.0"
4647-
simple-icons "^4.19.0"
4648-
vue-tailwind "^2.1.7"
4649-
46504635
compressible@~2.0.16:
46514636
version "2.0.18"
46524637
resolved "https://registry.yarnpkg.com/compressible/-/compressible-2.0.18.tgz#af53cca6b070d4c3c0750fbd77286a6d7cc46fba"

0 commit comments

Comments
 (0)