From 8dac2df7bf26ef38cec2cea4e4f0ae1348f34983 Mon Sep 17 00:00:00 2001 From: Anthony Lapenna Date: Mon, 31 Aug 2020 17:21:15 +1200 Subject: [PATCH] fix(k8s/volumes): fix an issue with the system volume filter not working (#4284) --- .../volumes-datatable/volumesDatatableController.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/app/kubernetes/components/datatables/volumes-datatable/volumesDatatableController.js b/app/kubernetes/components/datatables/volumes-datatable/volumesDatatableController.js index e9dc9e478..2f13b0e56 100644 --- a/app/kubernetes/components/datatables/volumes-datatable/volumesDatatableController.js +++ b/app/kubernetes/components/datatables/volumes-datatable/volumesDatatableController.js @@ -33,7 +33,7 @@ class KubernetesVolumesDatatableController { } isDisplayed(item) { - return !this.isSystemNamespace(item) || this.showSystem; + return !this.isSystemNamespace(item) || this.settings.showSystem; } isExternalVolume(item) { @@ -48,6 +48,7 @@ class KubernetesVolumesDatatableController { this.setDefaults(); this.prepareTableFromDataset(); this.isAdmin = this.Authentication.isAdmin(); + this.settings.showSystem = false; this.state.orderBy = this.orderBy; var storedOrder = this.DatatableService.getDataTableOrder(this.tableKey); @@ -76,8 +77,6 @@ class KubernetesVolumesDatatableController { this.settings.open = false; } this.onSettingsRepeaterChange(); - - this.settings.showSystem = false; } $onInit() {