diff --git a/embark-ui/src/components/TextEditorToolbar.js b/embark-ui/src/components/TextEditorToolbar.js
index c0c9f5375..57fc711f0 100644
--- a/embark-ui/src/components/TextEditorToolbar.js
+++ b/embark-ui/src/components/TextEditorToolbar.js
@@ -1,51 +1,72 @@
-import React from 'react';
+import React, { Component } from 'react';
import PropTypes from 'prop-types';
import {Button, Nav, NavLink} from 'reactstrap';
+import classnames from 'classnames';
import FontAwesomeIcon from 'react-fontawesome';
-const TextEditorToolbar = (props) => (
-
- -
-
-
-
- -
-
+const TextEditorToolbarTabs = {
+ Overview: 'overview',
+ Detail: 'detail',
+ Logger: 'logger',
+ Debugger: 'debugger',
+ Browser: 'browser'
+};
-
-
-);
+class TextEditorToolbar extends Component {
+
+ isActiveTab(tab) {
+ return this.props.activeTab === tab;
+ }
+
+ render() {
+ return (
+
+ -
+
+
+
+ -
+
+
+
+
+ );
+ }
+}
TextEditorToolbar.propTypes = {
isContract: PropTypes.bool,
save: PropTypes.func,
remove: PropTypes.func,
toggleShowHiddenFiles: PropTypes.func,
- openAsideTab: PropTypes.func
+ openAsideTab: PropTypes.func,
+ activeTab: PropTypes.string
};
export default TextEditorToolbar;
diff --git a/embark-ui/src/containers/EditorContainer.js b/embark-ui/src/containers/EditorContainer.js
index c1afb9bae..cec5950a6 100644
--- a/embark-ui/src/containers/EditorContainer.js
+++ b/embark-ui/src/containers/EditorContainer.js
@@ -62,7 +62,8 @@ class EditorContainer extends React.Component {
this.openAsideTab(newTab)}
isContract={this.isContract()}
- currentFile={this.props.currentFile} />
+ currentFile={this.props.currentFile}
+ activeTab={this.state.currentAsideTab}/>
this.toggleShowHiddenFiles()} />
diff --git a/embark-ui/src/containers/TextEditorToolbarContainer.js b/embark-ui/src/containers/TextEditorToolbarContainer.js
index ffce2b65d..0c229c21e 100644
--- a/embark-ui/src/containers/TextEditorToolbarContainer.js
+++ b/embark-ui/src/containers/TextEditorToolbarContainer.js
@@ -22,7 +22,8 @@ class TextEditorToolbarContainer extends Component {
toggleShowHiddenFiles={this.props.toggleShowHiddenFiles}
openAsideTab={this.props.openAsideTab}
save={() => this.save()}
- remove={() => this.remove()} />;
+ remove={() => this.remove()}
+ activeTab={this.props.activeTab} />;
}
}
@@ -32,7 +33,8 @@ TextEditorToolbarContainer.propTypes = {
saveFile: PropTypes.func,
removeFile: PropTypes.func,
toggleShowHiddenFiles: PropTypes.func,
- openAsideTab: PropTypes.func
+ openAsideTab: PropTypes.func,
+ activeTab: PropTypes.string
};
export default connect(