CSR-268: few small fixes
This commit is contained in:
parent
bd0d40357c
commit
952969291f
2 changed files with 7 additions and 4 deletions
|
|
@ -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>
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue