nci/static/js/app/components/builds/item.js
2015-05-08 00:55:40 +03:00

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;
});