summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVitalii Lysak <v.lysak@dunice.net>2022-07-01 14:50:02 +0300
committerVitalii Lysak <v.lysak@dunice.net>2022-07-01 14:50:02 +0300
commit1a88912340f70d1a25d965dc6c60ee0ffc516df8 (patch)
tree882aa2740de8b15b1247146ad72c6483ce598a4d
parentd686e23f1f4d7ab873d6d8631c84564b291364fa (diff)
downloadwebui-vue-1a88912340f70d1a25d965dc6c60ee0ffc516df8.tar.xz
code clean
-rw-r--r--src/components/Mixins/TableFilterMixin.js2
-rw-r--r--src/store/modules/HardwareStatus/SensorsStore.js3
-rw-r--r--src/views/Fans/StaticInformation/FansStaticPage.vue7
-rw-r--r--src/views/HardwareStatus/Sensors/Sensors.vue7
4 files changed, 0 insertions, 19 deletions
diff --git a/src/components/Mixins/TableFilterMixin.js b/src/components/Mixins/TableFilterMixin.js
index 4c3b4334..7a2cc540 100644
--- a/src/components/Mixins/TableFilterMixin.js
+++ b/src/components/Mixins/TableFilterMixin.js
@@ -7,7 +7,6 @@ const TableFilterMixin = {
return [...arr, ...filter.values];
}, []);
// If no filters are active, then return all table data
- console.log('tableData!', tableData);
if (filterItems.length === 0) return tableData;
// Check if row property value is included in list of
@@ -21,7 +20,6 @@ const TableFilterMixin = {
break;
}
}
- console.log('returnRow!', returnRow);
return returnRow;
});
},
diff --git a/src/store/modules/HardwareStatus/SensorsStore.js b/src/store/modules/HardwareStatus/SensorsStore.js
index ecf2c401..287796d9 100644
--- a/src/store/modules/HardwareStatus/SensorsStore.js
+++ b/src/store/modules/HardwareStatus/SensorsStore.js
@@ -16,7 +16,6 @@ const SensorsStore = {
},
actions: {
async getAllSensors({ dispatch }) {
- console.log('getAllSensors@@@');
const collection = await dispatch('getChassisCollection');
if (!collection) return;
const promises = collection.reduce((acc, id) => {
@@ -36,12 +35,10 @@ const SensorsStore = {
.catch((error) => console.log(error));
},
async getSensors({ commit }, id) {
- console.log('getSensors@@@');
const sensors = await api
.get(`${id}/Sensors`)
.then((response) => response.data.Members)
.catch((error) => console.log(error));
- console.log('sensors@@@', sensors);
if (!sensors) return;
const promises = sensors.map((sensor) => {
return api.get(sensor['@odata.id']).catch((error) => {
diff --git a/src/views/Fans/StaticInformation/FansStaticPage.vue b/src/views/Fans/StaticInformation/FansStaticPage.vue
index 041046c1..6b071e87 100644
--- a/src/views/Fans/StaticInformation/FansStaticPage.vue
+++ b/src/views/Fans/StaticInformation/FansStaticPage.vue
@@ -119,13 +119,6 @@ export default {
},
filteredSensors() {
- console.log('wow!');
- console.log('this.allSensors!', this.allSensors);
- console.log('this.activeFilters!', this.activeFilters);
- console.log(
- 'eeeeeeeeeeeeeee!',
- this.getFilteredTableData(this.allSensors, this.activeFilters)
- );
return this.getFilteredTableData(this.allSensors, this.activeFilters);
},
},
diff --git a/src/views/HardwareStatus/Sensors/Sensors.vue b/src/views/HardwareStatus/Sensors/Sensors.vue
index b5ccb42f..6329d9d8 100644
--- a/src/views/HardwareStatus/Sensors/Sensors.vue
+++ b/src/views/HardwareStatus/Sensors/Sensors.vue
@@ -217,13 +217,6 @@ export default {
: this.filteredSensors.length;
},
filteredSensors() {
- console.log('wow!');
- console.log('this.allSensors!', this.allSensors);
- console.log('this.activeFilters!', this.activeFilters);
- console.log(
- 'eeeeeeeeeeeeeee!',
- this.getFilteredTableData(this.allSensors, this.activeFilters)
- );
return this.getFilteredTableData(this.allSensors, this.activeFilters);
},
},