diff options
Diffstat (limited to 'src/views/_sila/Power/Dynamic/VoltOutput.vue')
-rw-r--r-- | src/views/_sila/Power/Dynamic/VoltOutput.vue | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/views/_sila/Power/Dynamic/VoltOutput.vue b/src/views/_sila/Power/Dynamic/VoltOutput.vue index 2d6f99dc..6284c5ce 100644 --- a/src/views/_sila/Power/Dynamic/VoltOutput.vue +++ b/src/views/_sila/Power/Dynamic/VoltOutput.vue @@ -62,7 +62,13 @@ </b-col> </b-row> </b-form> + <b-col v-if="isNoData" class="chart-no-data"> + <span> + {{ $t('global.table.emptyMessage') }} + </span> + </b-col> <chart + v-else type="voltage-output" :time-scale="timeScale" :data="filteredItems" @@ -148,6 +154,7 @@ export default { critical: null, isBusy: false, opened: false, + isNoData: false, fields: [ { key: 'name', @@ -325,6 +332,9 @@ export default { this.isBusy = false; this.$store.commit('powerSupply/setIsLoadingVol', false); this.$root.$emit('psu-volt-output', false); + if (this.filteredItems.length === 0) { + this.isNoData = true; + } }, }, }; |