mirror of
https://github.com/louislam/dockge.git
synced 2026-05-21 14:02:17 +00:00
Close terminal if there is no clients (#60)
* Close terminal if there is no clients connecting * Only enable * Join the terminal only if it is managed by Dockge * Done
This commit is contained in:
@@ -319,6 +319,12 @@ export default {
|
||||
},
|
||||
deep: true,
|
||||
},
|
||||
|
||||
$route(to, from) {
|
||||
// Leave Combined Terminal
|
||||
console.debug("leaveCombinedTerminal", from.params.stackName);
|
||||
this.$root.getSocket().emit("leaveCombinedTerminal", this.stack.name, () => {});
|
||||
}
|
||||
},
|
||||
mounted() {
|
||||
if (this.isAdd) {
|
||||
@@ -361,7 +367,7 @@ export default {
|
||||
clearTimeout(serviceStatusTimeout);
|
||||
serviceStatusTimeout = setTimeout(async () => {
|
||||
this.requestServiceStatus();
|
||||
}, 2000);
|
||||
}, 5000);
|
||||
},
|
||||
|
||||
requestServiceStatus() {
|
||||
|
||||
Reference in New Issue
Block a user