mirror of
https://github.com/Febbweiss/ProjectDeployer.git
synced 2026-03-04 22:25:38 +00:00
Fix: managing deployment failure
This commit is contained in:
@@ -10,7 +10,20 @@ Template.deploymentDetails.helpers({
|
||||
},
|
||||
running: function() {
|
||||
var string = this.status;
|
||||
if( !string ) {
|
||||
return '';
|
||||
}
|
||||
return string.charAt(0).toUpperCase() + string.slice(1);
|
||||
},
|
||||
deployment_status: function() {
|
||||
switch( this.status ) {
|
||||
case 'closed' :
|
||||
return this.output[this.output.length - 1].error ? 'bg-danger' : 'bg-success';
|
||||
case 'pending' :
|
||||
return 'bg-info';
|
||||
default :
|
||||
return 'bg-default';
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user