summaryrefslogtreecommitdiff
path: root/src/views/Health/Sensors/Sensors.vue
diff options
context:
space:
mode:
authorSurenNeware <sneware9@in.ibm.com>2020-07-27 18:15:14 +0300
committerYoshie Muranaka <yoshiemuranaka@gmail.com>2020-08-18 16:51:46 +0300
commit307382e809bc7d933ee593f68ef354c388ea350e (patch)
tree76a25ecee203dc225fd067b41c01323ecac2acd5 /src/views/Health/Sensors/Sensors.vue
parentdfc4fd3fba73488ad1591cf5278ae9e1ff351b64 (diff)
downloadwebui-vue-307382e809bc7d933ee593f68ef354c388ea350e.tar.xz
Add default or empty table state
-Add appropriate empty text for the table. -Add common default empty state for all tables. Signed-off-by: Suren Neware <sneware9@in.ibm.com> Change-Id: If4beabc0b1450718095757bbb0803335ccf83ec5
Diffstat (limited to 'src/views/Health/Sensors/Sensors.vue')
-rw-r--r--src/views/Health/Sensors/Sensors.vue2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/views/Health/Sensors/Sensors.vue b/src/views/Health/Sensors/Sensors.vue
index f8564d86..f0966540 100644
--- a/src/views/Health/Sensors/Sensors.vue
+++ b/src/views/Health/Sensors/Sensors.vue
@@ -35,11 +35,13 @@
no-sort-reset
sticky-header="75vh"
sort-by="status"
+ show-empty
:items="filteredSensors"
:fields="fields"
:sort-desc="true"
:sort-compare="sortCompare"
:filter="searchFilter"
+ :empty-text="$t('global.table.emptyMessage')"
@row-selected="onRowSelected($event, filteredSensors.length)"
>
<!-- Checkbox column -->