1
0
Fork 0
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:
Chaim Lev-Ari 2020-05-18 11:05:00 +03:00 committed by GitHub
parent 42e7db0ae7
commit 2260107811
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 12 additions and 4 deletions

View file

@ -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;