Add Actions tab to EditDictionary modal
This commit is contained in:
parent
09946e1504
commit
548f935753
|
@ -13,6 +13,7 @@ const DISPLAY = {
|
|||
DETAILS: 1,
|
||||
LINGUISTICS: 2,
|
||||
SETTINGS: 3,
|
||||
ACTIONS: 4,
|
||||
}
|
||||
|
||||
export class EditDictionaryModal extends Component {
|
||||
|
@ -126,6 +127,14 @@ export class EditDictionaryModal extends Component {
|
|||
);
|
||||
break;
|
||||
}
|
||||
|
||||
case DISPLAY.ACTIONS : {
|
||||
displayJSX = (
|
||||
<div class="content">
|
||||
<p>Actions like import, export, delete, etc.</p>
|
||||
</div>
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
return (
|
||||
|
@ -293,6 +302,11 @@ export class EditDictionaryModal extends Component {
|
|||
Settings
|
||||
</a>
|
||||
</li>
|
||||
<li className={ (currentDisplay === DISPLAY.ACTIONS) ? 'is-active' : null }>
|
||||
<a onClick={ this.toggleDisplay.bind(this, DISPLAY.ACTIONS) }>
|
||||
Actions
|
||||
</a>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
),
|
||||
|
|
Loading…
Reference in New Issue