mirror of
https://github.com/portainer/portainer.git
synced 2025-07-25 00:09:40 +02:00
feat(edge-stacks): add refresh to edit stack page (#3835)
This commit is contained in:
parent
42e7db0ae7
commit
2260107811
3 changed files with 12 additions and 4 deletions
|
@ -15,6 +15,7 @@ class EditEdgeStackViewController {
|
|||
|
||||
this.state = {
|
||||
actionInProgress: false,
|
||||
activeTab: 0,
|
||||
};
|
||||
|
||||
this.deployStack = this.deployStack.bind(this);
|
||||
|
@ -24,7 +25,8 @@ class EditEdgeStackViewController {
|
|||
}
|
||||
|
||||
async $onInit() {
|
||||
const { stackId } = this.$state.params;
|
||||
const { stackId, tab } = this.$state.params;
|
||||
this.state.activeTab = tab;
|
||||
try {
|
||||
const [edgeGroups, model, file] = await Promise.all([this.EdgeGroupService.groups(), this.EdgeStackService.stack(stackId), this.EdgeStackService.stackFile(stackId)]);
|
||||
this.edgeGroups = edgeGroups;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue