Commit 075bd93d by Johannes Edmeier

Add health-url to desktop-notification.

This should avoid confusion as in #131
parent a0ffe33a
...@@ -19,7 +19,7 @@ module.exports = function ($scope, $location, $interval, $state, $filter, Applic ...@@ -19,7 +19,7 @@ module.exports = function ($scope, $location, $interval, $state, $filter, Applic
var createNote = function(app) { var createNote = function(app) {
var title = app.name + (app.statusInfo.status === 'UP' ? ' is back ' : ' went ') + app.statusInfo.status; var title = app.name + (app.statusInfo.status === 'UP' ? ' is back ' : ' went ') + app.statusInfo.status;
var options = { tag: app.id, var options = { tag: app.id,
body: 'Instance ' + app.id, body: 'Instance ' + app.id + '\n' + app.healthUrl,
icon: (app.statusInfo.status === 'UP' ? 'img/ok.png' : 'img/error.png'), icon: (app.statusInfo.status === 'UP' ? 'img/ok.png' : 'img/error.png'),
timeout: 15000, timeout: 15000,
url: $state.href('apps.details', {id: app.id}) }; url: $state.href('apps.details', {id: app.id}) };
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment