diff --git a/app/edge/__module.js b/app/edge/__module.js
index dc813eba2..91f29687f 100644
--- a/app/edge/__module.js
+++ b/app/edge/__module.js
@@ -66,6 +66,9 @@ angular.module('portainer.edge', []).config(function config($stateRegistryProvid
component: 'editEdgeStackView',
},
},
+ params: {
+ tab: 0,
+ },
};
$stateRegistryProvider.register(edge);
diff --git a/app/edge/views/edge-stacks/edit/editEdgeStackView.html b/app/edge/views/edge-stacks/edit/editEdgeStackView.html
index 6a64ae1e9..b1478d753 100644
--- a/app/edge/views/edge-stacks/edit/editEdgeStackView.html
+++ b/app/edge/views/edge-stacks/edit/editEdgeStackView.html
@@ -1,5 +1,9 @@
-
+
+
+
+
+
Edge Stacks > {{ $ctrl.stack.Name }}
@@ -7,8 +11,7 @@
-
-
+
Stack
diff --git a/app/edge/views/edge-stacks/edit/editEdgeStackViewController.js b/app/edge/views/edge-stacks/edit/editEdgeStackViewController.js
index c691d0541..018cc1c51 100644
--- a/app/edge/views/edge-stacks/edit/editEdgeStackViewController.js
+++ b/app/edge/views/edge-stacks/edit/editEdgeStackViewController.js
@@ -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;