mirror of
https://github.com/portainer/portainer.git
synced 2025-07-19 13:29:41 +02:00
refactor(app): summary widget migration [EE-5351] (#8796)
* refactor(app): summary widget migration [EE-5351] * update converter and limit display --------- Co-authored-by: testa113 <testa113>
This commit is contained in:
parent
745bbb7d79
commit
98e6393274
23 changed files with 964 additions and 304 deletions
|
@ -276,7 +276,7 @@
|
|||
</a>
|
||||
<a
|
||||
ng-if="!item.KubernetesApplications"
|
||||
ui-sref="kubernetes.applications.application({ name: item.Name, namespace: item.ResourcePool })"
|
||||
ui-sref="kubernetes.applications.application({ name: item.Name, namespace: item.ResourcePool, 'resource-type': $ctrl.applicationTypeEnumToParamMap[item.ApplicationType] })"
|
||||
ng-click="$event.stopPropagation()"
|
||||
class="hyperlink"
|
||||
>{{ item.Name }}
|
||||
|
|
|
@ -33,6 +33,13 @@ angular.module('portainer.docker').controller('KubernetesApplicationsDatatableCo
|
|||
},
|
||||
};
|
||||
|
||||
this.applicationTypeEnumToParamMap = {
|
||||
[KubernetesApplicationTypes.DEPLOYMENT]: 'Deployment',
|
||||
[KubernetesApplicationTypes.DAEMONSET]: 'DaemonSet',
|
||||
[KubernetesApplicationTypes.STATEFULSET]: 'StatefulSet',
|
||||
[KubernetesApplicationTypes.POD]: 'Pod',
|
||||
};
|
||||
|
||||
this.expandAll = function () {
|
||||
this.state.expandAll = !this.state.expandAll;
|
||||
this.state.filteredDataSet.forEach((item) => this.expandItem(item, this.state.expandAll));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue