nci/static/js/app/components/builds/item.js
2015-05-10 00:47:01 +03:00

26 lines
634 B
JavaScript

'use strict';
define([
'react', 'app/actions/project',
'app/actions/build', 'templates/app/components/builds/item',
'app/components/common/index'
], 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);
},
render: template
});
return Component;
});