diff --git a/embark-ui/src/components/TextEditorToolbar.js b/embark-ui/src/components/TextEditorToolbar.js index d89bfacad..c12484ba1 100644 --- a/embark-ui/src/components/TextEditorToolbar.js +++ b/embark-ui/src/components/TextEditorToolbar.js @@ -6,7 +6,7 @@ import FontAwesomeIcon from 'react-fontawesome'; export const TextEditorToolbarTabs = { Interact: { label: 'Interact', icon: 'bolt' }, - Ietails: { label: 'Details', icon: 'info-cicle' }, + Details: { label: 'Details', icon: 'info-circle' }, Debugger: { label: 'Debugger', icon: 'bug' }, Transactions: { label: 'Transactions', icon: 'list-alt' }, Browser: { label: 'Browser', icon: 'eye' } diff --git a/embark-ui/src/containers/EditorContainer.js b/embark-ui/src/containers/EditorContainer.js index 24dc0cff0..b860a710c 100644 --- a/embark-ui/src/containers/EditorContainer.js +++ b/embark-ui/src/containers/EditorContainer.js @@ -68,7 +68,7 @@ class EditorContainer extends React.Component { this.onFileContentChange(newContent)} /> - {this.state.currentAsideTab && + {this.state.currentAsideTab.label &&

{contract.className} - Debugger

); - case TextEditorToolbarTabs.Details: + case TextEditorToolbarTabs.Details.label: return (

{contract.className} - Details

); - case TextEditorToolbarTabs.Transactions: + case TextEditorToolbarTabs.Transactions.label: return (

{contract.className} - Transactions

); - case TextEditorToolbarTabs.Interact: + case TextEditorToolbarTabs.Interact.label: return (

{contract.className} - Interact

@@ -53,7 +53,7 @@ class TextEditorAsideContainer extends Component { } render() { - if (this.props.currentAsideTab === TextEditorToolbarTabs.Browser) { + if (this.props.currentAsideTab.label === TextEditorToolbarTabs.Browser.label) { return ; } return this.props.contracts.map((contract, index) => { diff --git a/lib/modules/contracts_manager/index.js b/lib/modules/contracts_manager/index.js index 20344896d..12e0a3990 100644 --- a/lib/modules/contracts_manager/index.js +++ b/lib/modules/contracts_manager/index.js @@ -271,7 +271,7 @@ class ContractsManager { function getGasPriceForNetwork(callback) { return callback(null, self.contractsConfig.gasPrice); }, - function prepareContractsFromCompilation(gasPrice, callback) { + function prepareContractsForCompilation(gasPrice, callback) { let className, compiledContract, contractConfig, contract; for (className in self.compiledContracts) { compiledContract = self.compiledContracts[className];