From 952969291f2bf9c9f8166fff5bd6a886d76cc3b1 Mon Sep 17 00:00:00 2001 From: Adam Caouette Date: Wed, 2 Feb 2022 14:54:37 -0500 Subject: [PATCH] CSR-268: few small fixes --- src/common-components/funnel-footer/funnel-footer.vue | 6 +++--- .../list-button-horizontal/list-button-horizontal.vue | 5 ++++- 2 files changed, 7 insertions(+), 4 deletions(-) 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;