summaryrefslogtreecommitdiff
path: root/src/views
diff options
context:
space:
mode:
authorYoshie Muranaka <yoshiemuranaka@gmail.com>2020-05-20 20:11:06 +0300
committerGunnar Mills <gmills@us.ibm.com>2020-05-23 01:14:13 +0300
commit396aaab761da86698dcb5890b0a6960a90d3459b (patch)
treeb0c081a28769b8b72a96e1ea376806d6ad06202d /src/views
parent6f102346cbeaff7bc2e1f6ae46a67316ca90b5cd (diff)
downloadwebui-vue-396aaab761da86698dcb5890b0a6960a90d3459b.tar.xz
Refactor Sensors filtered data
Removed setter on computed filteredSensors value. Explicitly setting filteredSensors value is not necessary because activeFilters property change automatically updates the computed value. Signed-off-by: Yoshie Muranaka <yoshiemuranaka@gmail.com> Change-Id: I7711d3aa0ddf2eea2fc0c613ef7a7882245d3cf1
Diffstat (limited to 'src/views')
-rw-r--r--src/views/Health/Sensors/Sensors.vue13
1 files changed, 2 insertions, 11 deletions
diff --git a/src/views/Health/Sensors/Sensors.vue b/src/views/Health/Sensors/Sensors.vue
index 6cd70be8..5379eae8 100644
--- a/src/views/Health/Sensors/Sensors.vue
+++ b/src/views/Health/Sensors/Sensors.vue
@@ -162,13 +162,8 @@ export default {
allSensors() {
return this.$store.getters['sensors/sensors'];
},
- filteredSensors: {
- get: function() {
- return this.getFilteredTableData(this.allSensors, this.activeFilters);
- },
- set: function(newVal) {
- return newVal;
- }
+ filteredSensors() {
+ return this.getFilteredTableData(this.allSensors, this.activeFilters);
}
},
created() {
@@ -203,10 +198,6 @@ export default {
},
onFilterChange({ activeFilters }) {
this.activeFilters = activeFilters;
- this.filteredSensors = this.getFilteredTableData(
- this.allSensors,
- activeFilters
- );
}
}
};