nci/static/js/app/components/builds/item.js

21 lines
448 B
JavaScript
Raw Normal View History

2015-05-07 21:55:40 +00:00
'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({
2015-05-09 20:19:25 +00:00
build: this.props.build,
2015-05-07 21:55:40 +00:00
onBuildSelect: this.onBuildSelect
});
}
});
return Component;
});