var _ = require('underscore'); var React = require('react/addons'); var Router = require('react-router'); var ContainerSettings = React.createClass({ mixins: [Router.State, Router.Navigation], componentWillReceiveProps: function () { this.init(); }, componentDidMount: function() { this.init(); }, init: function () { var currentRoute = _.last(this.getRoutes()).name; if (currentRoute === 'containerSettings') { this.transitionTo('containerSettingsGeneral', {name: this.getParams().name}); } }, render: function () { var container = this.props.container; if (!container) { return (
); } return (
  • General
  • Ports
  • Volumes
); } }); module.exports = ContainerSettings;