added ribica rake task (item import, copying sections to menu etc.)
This commit is contained in:
@@ -1,5 +1,7 @@
|
||||
var React = require('react'),
|
||||
MenuItemListComponent = require('./shared/menuItemListComponent'),
|
||||
SectionListComponent = require('./shared/sectionsListComponent'),
|
||||
|
||||
Router = require('react-router'),
|
||||
Link = Router.Link,
|
||||
RouteHandler = Router.RouteHandler,
|
||||
@@ -14,7 +16,7 @@ var RootApp = React.createClass({
|
||||
|
||||
// Add change listeners to stores
|
||||
componentDidMount: function() {
|
||||
InitializationStore.addChangeListener(this._onChange);
|
||||
InitializationStore.addChangeListener(this._onChange);
|
||||
InitializationActions.initialize();
|
||||
},
|
||||
|
||||
@@ -26,7 +28,7 @@ var RootApp = React.createClass({
|
||||
|
||||
_onChange: function () {
|
||||
if (this.isMounted()) {
|
||||
this.setState(InitializationStore.getState());
|
||||
this.setState(InitializationStore.getState());
|
||||
}
|
||||
},
|
||||
|
||||
@@ -44,7 +46,7 @@ var RootApp = React.createClass({
|
||||
<div className="container">
|
||||
<div className='page-header'>
|
||||
<h1 className="main-heading">
|
||||
|
||||
|
||||
<Link to="app"><img src="https://res.cloudinary.com/lfvt7ps2n/image/upload/c_scale,w_132/v1426226452/ribica-ispunjava-zelje_nng0gn.png" /></Link>
|
||||
|
||||
</h1>
|
||||
@@ -68,9 +70,9 @@ var RootApp = React.createClass({
|
||||
<div className='row'>
|
||||
<RouteHandler />
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
);
|
||||
}
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user