Refactor global TableFilter component and mixin
Add key property to TableFilter component to make sure filtering
is based on specific row property. Previously, the table filter
was checking all row properties for matches.
Signed-off-by: Yoshie Muranaka <yoshiemuranaka@gmail.com>
Change-Id: I589886a0d487ac3ab8def585cc7286e61992afdb
diff --git a/src/views/Health/Sensors/Sensors.vue b/src/views/Health/Sensors/Sensors.vue
index 879e236..7ff5e64 100644
--- a/src/views/Health/Sensors/Sensors.vue
+++ b/src/views/Health/Sensors/Sensors.vue
@@ -159,6 +159,7 @@
],
tableFilters: [
{
+ key: 'status',
label: this.$t('pageSensors.table.status'),
values: ['OK', 'Warning', 'Critical']
}