CSR-268: few small fixes

This commit is contained in:
Adam Caouette 2022-02-02 14:54:37 -05:00
parent bd0d40357c
commit 952969291f
2 changed files with 7 additions and 4 deletions

View file

@ -65,6 +65,9 @@ export default {
this.$nextTick(() => { this.$nextTick(() => {
window.addEventListener('resize', this.onResize); window.addEventListener('resize', this.onResize);
}) })
setTimeout(function(){ // Give it a moment to set the date
document.getElementById('years').innerHTML += new Date().getFullYear();
}, 100);
}, },
beforeUnmount() { beforeUnmount() {
window.removeEventListener('resize', this.onResize); 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);
</script> </script>

View file

@ -69,7 +69,7 @@ export default {
type: String, type: String,
default: "", default: "",
}, },
modelValue: false, modelValue: [Array, String],
}, },
data() { data() {
return { return {
@ -77,6 +77,9 @@ export default {
checkValue: Boolean, checkValue: Boolean,
}; };
}, },
created(){
this.checkValue = this.modelValue ? this.modelValue.includes(this.buttonID) : false;
},
methods: { methods: {
displayLoader() { displayLoader() {
this.isLoaderDisplayed = true; this.isLoaderDisplayed = true;