Adding in UI for cancel anytime.
This commit is contained in:
parent
f6fe9023a4
commit
2fe74e4057
11 changed files with 31 additions and 25 deletions
|
@ -2,9 +2,9 @@
|
|||
* Service which provides helper methods for reasoning about builds.
|
||||
*/
|
||||
angular.module('quay').factory('BuildService', [function() {
|
||||
var buildService = {}
|
||||
var buildService = {};
|
||||
buildService.isActive = function(build) {
|
||||
return build.phase != 'complete' && build.phase != 'error' && build.phase != 'expired';
|
||||
return build.phase != 'complete' && build.phase != 'error' && build.phase != 'expired' && build.phase != 'cancelled';
|
||||
};
|
||||
|
||||
buildService.getBuildMessage = function(phase) {
|
||||
|
@ -51,6 +51,10 @@ angular.module('quay').factory('BuildService', [function() {
|
|||
|
||||
case 'internalerror':
|
||||
return 'An internal system error occurred while building; the build will be retried in the next few minutes.';
|
||||
|
||||
case 'cancelled':
|
||||
return 'This build was previously cancelled.';
|
||||
|
||||
}
|
||||
};
|
||||
|
||||
|
|
Reference in a new issue