@@ -310,6 +315,10 @@ export default {
},
computed: {
+ endpointDisplay() {
+ return this.$root.endpointDisplayFunction(this.endpoint);
+ },
+
urls() {
if (!this.envsubstJSONConfig["x-dockge"] || !this.envsubstJSONConfig["x-dockge"].urls || !Array.isArray(this.envsubstJSONConfig["x-dockge"].urls)) {
return [];
@@ -428,9 +437,7 @@ export default {
},
$route(to, from) {
- // Leave Combined Terminal
- console.debug("leaveCombinedTerminal", from.params.stackName);
- this.$root.emitAgent(this.endpoint, "leaveCombinedTerminal", this.stack.name, () => {});
+
}
},
mounted() {
@@ -473,11 +480,9 @@ export default {
this.requestServiceStatus();
},
unmounted() {
- this.stopServiceStatusTimeout = true;
- clearTimeout(serviceStatusTimeout);
+
},
methods: {
-
startServiceStatusTimeout() {
clearTimeout(serviceStatusTimeout);
serviceStatusTimeout = setTimeout(async () => {
@@ -499,15 +504,27 @@ export default {
exitConfirm(next) {
if (this.isEditMode) {
if (confirm("You are currently editing a stack. Are you sure you want to leave?")) {
+ this.exitAction();
next();
} else {
next(false);
}
} else {
+ this.exitAction();
next();
}
},
+ exitAction() {
+ console.log("exitAction");
+ this.stopServiceStatusTimeout = true;
+ clearTimeout(serviceStatusTimeout);
+
+ // Leave Combined Terminal
+ console.debug("leaveCombinedTerminal", this.endpoint, this.stack.name);
+ this.$root.emitAgent(this.endpoint, "leaveCombinedTerminal", this.stack.name, () => {});
+ },
+
bindTerminal() {
this.$refs.progressTerminal?.bind(this.endpoint, this.terminalName);
},
@@ -774,6 +791,8 @@ export default {