mirror of
https://gitlab.silvrtree.co.uk/martind2000/nci.git
synced 2025-01-11 02:05:09 +00:00
add rebuild project button
This commit is contained in:
parent
399e0992e3
commit
d53744bab7
@ -13,7 +13,8 @@ mixin statusText(build)
|
||||
.build(class="build__#{build.status}")
|
||||
.pull-right
|
||||
div
|
||||
a(href="javascript:void(0);", onClick=this.onBuildSelect(build.id), style={marginRight: '5px'}) show console
|
||||
a(href="javascript:void(0);", onClick=this.onBuildSelect(build.id), style={marginRight: '5px'})
|
||||
i.fa.fa-2x.fa-repeat(title="Rebuild", style={marginTop: '5px'}, onClick=this.onRebuildProject(build.project.name))
|
||||
.build_header
|
||||
span #
|
||||
span= build.id
|
||||
|
@ -1,15 +1,19 @@
|
||||
'use strict';
|
||||
|
||||
define([
|
||||
'react', 'app/actions/build', 'templates/app/components/builds/item',
|
||||
'react', 'app/actions/project',
|
||||
'app/actions/build', 'templates/app/components/builds/item',
|
||||
'app/components/common/index'
|
||||
], function(React, BuildActions, template, CommonComponents) {
|
||||
], function(React, ProjectActions, BuildActions, template, CommonComponents) {
|
||||
template = template.locals({
|
||||
DateTime: CommonComponents.DateTime
|
||||
});
|
||||
console.log(CommonComponents.DateTime);
|
||||
|
||||
var Component = React.createClass({
|
||||
onRebuildProject: function(projectName) {
|
||||
ProjectActions.run(projectName)
|
||||
},
|
||||
onBuildSelect: function(buildId) {
|
||||
console.log('on build select');
|
||||
BuildActions.readConsoleOutput(buildId);
|
||||
|
Loading…
Reference in New Issue
Block a user