nci/static/js/app/components/app/component.js

25 lines
509 B
JavaScript
Raw Normal View History

2015-05-17 13:48:16 +00:00
'use strict';
define([
'react',
'app/actions/project',
'app/actions/build',
'app/components/projects/index',
'app/components/builds/index',
'templates/app/components/app/template'
], function(React, ProjectActions, BuildActions, Projects, Builds, template) {
template = template.locals({
BuildsList: Builds.List
});
var Component = React.createClass({
componentWillMount: function() {
ProjectActions.readAll();
BuildActions.readAll();
},
render: template
});
return Component;
});