diff --git a/src/common-components/funnel-footer/funnel-footer.vue b/src/common-components/funnel-footer/funnel-footer.vue index 90c380b08..05c184b5c 100644 --- a/src/common-components/funnel-footer/funnel-footer.vue +++ b/src/common-components/funnel-footer/funnel-footer.vue @@ -65,6 +65,9 @@ export default { this.$nextTick(() => { window.addEventListener('resize', this.onResize); }) + setTimeout(function(){ // Give it a moment to set the date + document.getElementById('years').innerHTML += new Date().getFullYear(); + }, 100); }, beforeUnmount() { window.removeEventListener('resize', this.onResize); @@ -75,7 +78,4 @@ export default { } } }; -setTimeout(function(){ // Give it a moment to set the date - document.getElementById('years').innerHTML += new Date().getFullYear(); -}, 100); diff --git a/src/ux-components/list-button-horizontal/list-button-horizontal.vue b/src/ux-components/list-button-horizontal/list-button-horizontal.vue index 652102f64..40a0d262a 100644 --- a/src/ux-components/list-button-horizontal/list-button-horizontal.vue +++ b/src/ux-components/list-button-horizontal/list-button-horizontal.vue @@ -69,7 +69,7 @@ export default { type: String, default: "", }, - modelValue: false, + modelValue: [Array, String], }, data() { return { @@ -77,6 +77,9 @@ export default { checkValue: Boolean, }; }, + created(){ + this.checkValue = this.modelValue ? this.modelValue.includes(this.buttonID) : false; + }, methods: { displayLoader() { this.isLoaderDisplayed = true;