mirror of
https://github.com/bingohuang/docker-labs.git
synced 2025-10-04 17:33:21 +08:00
Add hostname to instance name
This commit is contained in:
@@ -93,8 +93,8 @@
|
||||
socket.on('viewport', function(rows, cols) {
|
||||
});
|
||||
|
||||
socket.on('new instance', function(name, ip) {
|
||||
$scope.upsertInstance({name: name, ip: ip});
|
||||
socket.on('new instance', function(name, ip, hostname) {
|
||||
$scope.upsertInstance({name: name, ip: ip, hostname: hostname});
|
||||
$scope.$apply(function() {
|
||||
if ($scope.instances.length == 1) {
|
||||
$scope.showInstance($scope.instances[0]);
|
||||
|
Reference in New Issue
Block a user