Skip to content
This repository was archived by the owner on Mar 30, 2020. It is now read-only.

Commit 5901ff3

Browse files
committed
fix gui
1 parent 70ac6af commit 5901ff3

File tree

4 files changed

+10
-3
lines changed

4 files changed

+10
-3
lines changed

client/js/controller/ProjectsCtrl.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,10 @@ module.exports = [
4141

4242
for (var i = running.length - 1; i >= 0; i--) {
4343
var tmp = running[i].Image.split(':');
44+
if (tmp.length < 2) {
45+
continue;
46+
}
47+
4448
if (revision.slice(0, tmp[1].length) != tmp[1]) {
4549
outdated++;
4650
}
@@ -107,4 +111,4 @@ module.exports = [
107111
socket.getStatus();
108112
};
109113
}
110-
];
114+
];

http/handle_status.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
package http
22

33
import (
4+
"fmt"
5+
46
"github.com/mcuadros/dockership/core"
57

68
"gopkg.in/igm/sockjs-go.v2/sockjs"
@@ -49,5 +51,6 @@ func (s *server) GetStatus(project string) map[string]*StatusResult {
4951
result[p.Name] = record
5052
}
5153

54+
fmt.Println("terminado", result)
5255
return result
5356
}

http/static/app.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)