mirror of
https://github.com/portainer/portainer.git
synced 2025-07-24 15:59:41 +02:00
fix(k8s/volumes): fix an issue with the system volume filter not working (#4284)
This commit is contained in:
parent
90fd5af4b9
commit
8dac2df7bf
1 changed files with 2 additions and 3 deletions
|
@ -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() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue