1
0
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:
Marcos Lilljedahl
2016-11-14 01:29:36 -03:00
parent bea093e67a
commit 46a186f28b
4 changed files with 12 additions and 11 deletions

View File

@@ -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]);