Skip to content

Commit acba4eb

Browse files
rushk014xingzhang-suse
authored andcommitted
fix: Remove unused isLightTheme computed variables leftover from refactoring
1 parent 1108761 commit acba4eb

32 files changed

Lines changed: 4 additions & 64 deletions

pkg/neuvector-ui-ext/components/Compliance/contents/ComplianceItemsDetail.vue

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ import RegulationModal from '../dialogs/RegulationModal.vue';
1212
selectedCompliance: Object,
1313
},
1414
computed: {
15-
isLightTheme() { return !document.body.classList.contains('theme-dark'); }
1615
},
1716
data() {
1817
return {

pkg/neuvector-ui-ext/components/Compliance/contents/ComplianceItemsTable.vue

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,6 @@
3131
totalCount() {
3232
return this.complianceData.compliances.length;
3333
},
34-
isLightTheme() { return !document.body.classList.contains('theme-dark'); }
3534
},
3635
methods: {
3736
initFilter() {

pkg/neuvector-ui-ext/components/Compliance/dialogs/AdvancedFilterModal.vue

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -101,9 +101,6 @@
101101
}
102102
},
103103
computed: {
104-
isLightTheme() {
105-
return !document.body.classList.contains('theme-dark');
106-
},
107104
filteredImpactOptions() {
108105
if (this.advFilter.selectedDomains.length === 0) {
109106
return this.impactOptions;

pkg/neuvector-ui-ext/components/Compliance/dialogs/RegulationModal.vue

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,6 @@
1717
name: String,
1818
},
1919
computed: {
20-
isLightTheme() {
21-
return !document.body.classList.contains('theme-dark');
22-
}
2320
},
2421
methods: {
2522
close() {

pkg/neuvector-ui-ext/components/NetworkRules/buttons/AddRuleToTopBtn.vue

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
1010
disabled: Boolean,
1111
},
1212
computed: {
13-
isLightTheme() { return !document.body.classList.contains('theme-dark'); }
1413
},
1514
data() {
1615
return {

pkg/neuvector-ui-ext/components/NetworkRules/dialogs/AddEditRuleModal.vue

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,6 @@ export default {
3030
}
3131
},
3232
computed: {
33-
isLightTheme() {
34-
return !document.body.classList.contains('theme-dark');
35-
},
3633
...mapGetters({
3734
newId: 'neuvector/newId',
3835
}),

pkg/neuvector-ui-ext/components/NetworkRules/dialogs/MoveRulesModal.vue

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@
2424
};
2525
},
2626
computed: {
27-
isLightTheme() { return !document.body.classList.contains('theme-dark'); }
2827
},
2928
methods: {
3029
close() {

pkg/neuvector-ui-ext/components/NetworkRules/dialogs/ViewAllPortsModal.vue

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
ports: String,
99
},
1010
computed: {
11-
isLightTheme() { return !document.body.classList.contains('theme-dark'); }
1211
},
1312
methods: {
1413
close() {

pkg/neuvector-ui-ext/components/NetworkRules/grids/NetWorkRulesGrid.vue

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -159,9 +159,6 @@
159159
},
160160
},
161161
computed: {
162-
isLightTheme() {
163-
return !document.body.classList.contains('theme-dark');
164-
},
165162
menuActions() {
166163
const menuActions = [];
167164
menuActions.push({

pkg/neuvector-ui-ext/components/NetworkRules/grids/agCells/PortsCellComponent.vue

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
ViewAllPortsModal,
66
},
77
computed: {
8-
isLightTheme() { return !document.body.classList.contains('theme-dark'); },
98
getPorts() {
109
let ports = '';
1110
if (this.params.node.data && this.params.node.data.id > -1) {

0 commit comments

Comments
 (0)