diff options
Diffstat (limited to 'src/views/_sila/Motherboard/Dynamic/MotherboardTemp.vue')
-rw-r--r-- | src/views/_sila/Motherboard/Dynamic/MotherboardTemp.vue | 21 |
1 files changed, 16 insertions, 5 deletions
diff --git a/src/views/_sila/Motherboard/Dynamic/MotherboardTemp.vue b/src/views/_sila/Motherboard/Dynamic/MotherboardTemp.vue index 6994082d..0a6d2c3e 100644 --- a/src/views/_sila/Motherboard/Dynamic/MotherboardTemp.vue +++ b/src/views/_sila/Motherboard/Dynamic/MotherboardTemp.vue @@ -1,5 +1,5 @@ <template> - <div> + <div :class="{ disabledDiv: loading }"> <b-col class="d-flex flex-nowrap align-items-center page-divider"> <img src="@/assets/images/_sila/collapsed/temperature.svg" /> {{ $t('pageMotherboard.temperature') }} @@ -117,7 +117,7 @@ export default { return { loading, warning: null, - isBusy: true, + isBusy: false, fields: [ { key: 'name', @@ -237,17 +237,28 @@ export default { payload = { lastHour: true }; } - this.startLoader(); + this.start(); this.$store .dispatch('motherboard/getMotherboardDynamic', payload) .finally(() => { this.$store.dispatch('motherboard/getLimits').finally(() => { this.warning = this.warningLimit; - this.endLoader(); - this.isBusy = false; + this.end(); }); }); }, + + start() { + this.startLoader(); + this.isBusy = true; + this.$root.$emit('motherboard', true); + }, + + end() { + this.endLoader(); + this.isBusy = false; + this.$root.$emit('motherboard', false); + }, }, }; </script> |