mirror of
https://github.com/bingohuang/docker-labs.git
synced 2025-07-15 02:37:27 +08:00
Focus terminal when changing instances
This commit is contained in:
parent
46a186f28b
commit
f63abdf3dd
@ -137,18 +137,17 @@
|
||||
$scope.showInstance = function(instance) {
|
||||
$scope.selectedInstance = instance;
|
||||
if (!instance.creatingTerminal) {
|
||||
instance.creatingTerminal = true;
|
||||
if (!instance.term) {
|
||||
$timeout(function() {
|
||||
createTerminal(instance);
|
||||
instance.term.focus();
|
||||
}, 0, false);
|
||||
} else {
|
||||
$timeout(function() {
|
||||
instance.term.focus();
|
||||
}, 0, false);
|
||||
return
|
||||
}
|
||||
}
|
||||
$timeout(function() {
|
||||
instance.term.focus();
|
||||
}, 0, false);
|
||||
}
|
||||
|
||||
$scope.removeInstance = function(name) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user