Skip to content

Commit

Permalink
Fix #1
Browse files Browse the repository at this point in the history
  • Loading branch information
khornberg committed Nov 18, 2015
1 parent 28ca331 commit 59adf46
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
2 changes: 2 additions & 0 deletions main.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ function setIcon() {
docker.ping((err, data) => {
if (lastConnectionStatus === null && data === null) {
down();
mb.window.webContents.send('send', 'update');
}

if (lastConnectionStatus === null && data == 'OK') {
Expand All @@ -42,6 +43,7 @@ function setIcon() {

if (lastConnectionStatus === 'OK' && data === null) {
down();
mb.window.webContents.send('send', 'update');
}
});
}
Expand Down
4 changes: 4 additions & 0 deletions src/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,10 @@ function update() {
});
}

if (err) {
containerList = containerList + `<li class="table-view-cell">${err}</li>`;
}

if (containerList === '<ul class="table-view">') {
containerList = containerList + '<li class="table-view-cell">No containers to show</li>';
}
Expand Down

0 comments on commit 59adf46

Please sign in to comment.