Commit c25b1a43 authored by lauraMon's avatar lauraMon

Adds condition for changing alert button colour

parent 94968250
...@@ -80,6 +80,15 @@ export default { ...@@ -80,6 +80,15 @@ export default {
return `${desc}${learnMoreDesc}`; return `${desc}${learnMoreDesc}`;
}, },
}, },
watch: {
activated() {
const inactive = document.querySelector('.fa-power-off');
const active = document.querySelector('.fa-circle');
this.activated
? inactive && inactive.setAttribute('class', 'fa fa-circle cgreen')
: active && active.setAttribute('class', 'fa fa-power-off clgray');
},
},
methods: { methods: {
resetKey() { resetKey() {
return axios return axios
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment