mirror of
https://gitlab.silvrtree.co.uk/martind2000/nci.git
synced 2025-01-12 15:15:08 +00:00
21 lines
446 B
JavaScript
21 lines
446 B
JavaScript
|
'use strict';
|
||
|
|
||
|
define([
|
||
|
'react', 'app/actions/build', 'templates/app/components/builds/item'
|
||
|
], function(React, BuildActions, template) {
|
||
|
var Component = React.createClass({
|
||
|
onBuildSelect: function(buildId) {
|
||
|
console.log('on build select');
|
||
|
BuildActions.readConsoleOutput(buildId);
|
||
|
},
|
||
|
render: function() {
|
||
|
return template({
|
||
|
item: this.props.item,
|
||
|
onBuildSelect: this.onBuildSelect
|
||
|
});
|
||
|
}
|
||
|
});
|
||
|
|
||
|
return Component;
|
||
|
});
|