mirror of
https://github.com/portainer/portainer.git
synced 2025-07-24 15:59:41 +02:00
fix(apps): persist table settings [r8s-120] (#10)
Co-authored-by: testA113 <aliharriss1995@gmail.com>
This commit is contained in:
parent
fd0bc652a9
commit
c88382ec1f
8 changed files with 13 additions and 86 deletions
|
@ -15,8 +15,6 @@ export const applicationsModule = angular
|
|||
'namespaces',
|
||||
'onNamespaceChange',
|
||||
'onRefresh',
|
||||
'showSystem',
|
||||
'onShowSystemChange',
|
||||
'onRemove',
|
||||
'hideStacks',
|
||||
])
|
||||
|
|
|
@ -215,8 +215,6 @@ export const ngModule = angular
|
|||
'namespace',
|
||||
'namespaces',
|
||||
'onNamespaceChange',
|
||||
'showSystem',
|
||||
'setSystemResources',
|
||||
])
|
||||
)
|
||||
.component(
|
||||
|
|
|
@ -18,8 +18,6 @@
|
|||
namespace="ctrl.state.namespaceName"
|
||||
on-namespace-change="(ctrl.onChangeNamespaceDropdown)"
|
||||
is-loading="ctrl.state.isAppsLoading"
|
||||
show-system="ctrl.state.isSystemResources"
|
||||
on-show-system-change="(ctrl.setSystemResources)"
|
||||
on-remove="(ctrl.removeAction)"
|
||||
hide-stacks="ctrl.deploymentOptions.hideStacksFunctionality"
|
||||
>
|
||||
|
@ -50,8 +48,6 @@
|
|||
namespace="ctrl.state.namespaceName"
|
||||
on-namespace-change="(ctrl.onChangeNamespaceDropdown)"
|
||||
is-loading="ctrl.state.isAppsLoading"
|
||||
show-system="ctrl.state.isSystemResources"
|
||||
on-show-system-change="(ctrl.setSystemResources)"
|
||||
on-remove="(ctrl.removeAction)"
|
||||
hide-stacks="ctrl.deploymentOptions.hideStacksFunctionality"
|
||||
>
|
||||
|
|
|
@ -42,7 +42,6 @@ class KubernetesApplicationsController {
|
|||
this.removeStacksActionAsync = this.removeStacksActionAsync.bind(this);
|
||||
this.onPublishingModeClick = this.onPublishingModeClick.bind(this);
|
||||
this.onChangeNamespaceDropdown = this.onChangeNamespaceDropdown.bind(this);
|
||||
this.setSystemResources = this.setSystemResources.bind(this);
|
||||
}
|
||||
|
||||
selectTab(index) {
|
||||
|
@ -133,12 +132,6 @@ class KubernetesApplicationsController {
|
|||
});
|
||||
}
|
||||
|
||||
setSystemResources(flag) {
|
||||
return this.$scope.$applyAsync(() => {
|
||||
this.state.isSystemResources = flag;
|
||||
});
|
||||
}
|
||||
|
||||
async onInit() {
|
||||
this.state = {
|
||||
activeTab: this.LocalStorage.getActiveTab('applications'),
|
||||
|
@ -150,7 +143,6 @@ class KubernetesApplicationsController {
|
|||
ports: [],
|
||||
namespaces: [],
|
||||
namespaceName: '',
|
||||
isSystemResources: undefined,
|
||||
};
|
||||
|
||||
this.deploymentOptions = await getDeploymentOptions();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue