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

26 lines
634 B
JavaScript
Raw Normal View History

2015-05-07 21:55:40 +00:00
'use strict';
define([
2015-05-09 21:47:01 +00:00
'react', 'app/actions/project',
'app/actions/build', 'templates/app/components/builds/item',
2015-05-09 21:36:17 +00:00
'app/components/common/index'
2015-05-09 21:47:01 +00:00
], function(React, ProjectActions, BuildActions, template, CommonComponents) {
2015-05-09 21:36:17 +00:00
template = template.locals({
DateTime: CommonComponents.DateTime
});
console.log(CommonComponents.DateTime);
2015-05-07 21:55:40 +00:00
var Component = React.createClass({
2015-05-09 21:47:01 +00:00
onRebuildProject: function(projectName) {
ProjectActions.run(projectName)
},
2015-05-07 21:55:40 +00:00
onBuildSelect: function(buildId) {
console.log('on build select');
BuildActions.readConsoleOutput(buildId);
},
2015-05-09 21:36:17 +00:00
render: template
2015-05-07 21:55:40 +00:00
});
return Component;
});