Skip to content

Commit

Permalink
fix: add tab when openign rule home page
Browse files Browse the repository at this point in the history
  • Loading branch information
stambata committed Nov 9, 2016
1 parent b2bb44c commit a3b0fa4
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion ui/react/pages/Main/index.js
Expand Up @@ -5,6 +5,7 @@ import Grid from '../../components/Grid';
import Dialog from '../../components/Dialog';
import Prompt from '../../components/Prompt';
import mainStyle from 'ut-front-react/assets/index.css';
import { AddTab } from 'ut-front-react/containers/TabMenu';
// import style from './style.css';
import * as actionCreators from './actionCreators';

Expand All @@ -14,7 +15,8 @@ const Main = React.createClass({
nomenclatures: PropTypes.object,
ready: PropTypes.bool,
empty: PropTypes.bool,
actions: PropTypes.object
actions: PropTypes.object,
location: PropTypes.object
},
getInitialState() {
return {
Expand Down Expand Up @@ -134,6 +136,7 @@ const Main = React.createClass({
return null;
}
return <div className={mainStyle.contentTableWrap}>
<AddTab pathname={this.props.location.pathname} title='Rule Management' />
<div className={mainStyle.actionBarWrap}>
<div style={{padding: '15px 10px 0 0', float: 'right'}}>
<button onClick={this.createBtnOnClick}>Create Rule</button>
Expand Down

0 comments on commit a3b0fa4

Please sign in to comment.