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(() => {
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);
</script>

View file

@ -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;