Fix build links in notifications
Fixes https://jira.prod.coreos.systems/browse/QS-33
This commit is contained in:
parent
44d8d7dd63
commit
1d593274dc
2 changed files with 6 additions and 6 deletions
|
@ -95,7 +95,7 @@ function($rootScope, $interval, UserService, ApiService, StringBuilderService, P
|
|||
'level': 'info',
|
||||
'message': 'A build has been queued for repository {repository}',
|
||||
'page': function(metadata) {
|
||||
return '/repository/' + metadata.repository + '/build?current=' + metadata.build_id;
|
||||
return '/repository/' + metadata.repository + '/build/' + metadata.build_id;
|
||||
},
|
||||
'dismissable': true
|
||||
},
|
||||
|
@ -103,7 +103,7 @@ function($rootScope, $interval, UserService, ApiService, StringBuilderService, P
|
|||
'level': 'info',
|
||||
'message': 'A build has been started for repository {repository}',
|
||||
'page': function(metadata) {
|
||||
return '/repository/' + metadata.repository + '/build?current=' + metadata.build_id;
|
||||
return '/repository/' + metadata.repository + '/build/' + metadata.build_id;
|
||||
},
|
||||
'dismissable': true
|
||||
},
|
||||
|
@ -111,7 +111,7 @@ function($rootScope, $interval, UserService, ApiService, StringBuilderService, P
|
|||
'level': 'info',
|
||||
'message': 'A build has succeeded for repository {repository}',
|
||||
'page': function(metadata) {
|
||||
return '/repository/' + metadata.repository + '/build?current=' + metadata.build_id;
|
||||
return '/repository/' + metadata.repository + '/build/' + metadata.build_id;
|
||||
},
|
||||
'dismissable': true
|
||||
},
|
||||
|
@ -119,7 +119,7 @@ function($rootScope, $interval, UserService, ApiService, StringBuilderService, P
|
|||
'level': 'error',
|
||||
'message': 'A build has failed for repository {repository}',
|
||||
'page': function(metadata) {
|
||||
return '/repository/' + metadata.repository + '/build?current=' + metadata.build_id;
|
||||
return '/repository/' + metadata.repository + '/build/' + metadata.build_id;
|
||||
},
|
||||
'dismissable': true
|
||||
},
|
||||
|
@ -127,7 +127,7 @@ function($rootScope, $interval, UserService, ApiService, StringBuilderService, P
|
|||
'level': 'info',
|
||||
'message': 'A build was cancelled for repository {repository}',
|
||||
'page': function(metadata) {
|
||||
return '/repository/' + metadata.repository + '/build?current=' + metadata.build_id;
|
||||
return '/repository/' + metadata.repository + '/build/' + metadata.build_id;
|
||||
},
|
||||
'dismissable': true
|
||||
},
|
||||
|
|
Reference in a new issue