diff --git a/src/client/components/StepWizard/index.jsx b/src/client/components/StepWizard/index.jsx index da33903df..40cf8d51e 100644 --- a/src/client/components/StepWizard/index.jsx +++ b/src/client/components/StepWizard/index.jsx @@ -24,10 +24,22 @@ class StepWizard extends React.Component { this.init = this.init.bind(this) this.show = this.show.bind(this) this.hide = this.hide.bind(this) + + this.onImportStatusChange = this.onImportStatusChange.bind(this) } componentDidMount () { this.init() + + socket.socket.on('$trudesk:accounts:import:onStatusChange', this.onImportStatusChange) + } + + componentWillUnmount () { + socket.socket.removeAllListeners('$trudesk:accounts:import:onStatusChange') + } + + onImportStatusChange = data => { + console.log(data) } init = () => { diff --git a/src/client/containers/Accounts/index.jsx b/src/client/containers/Accounts/index.jsx index 22845cf6a..85977233a 100644 --- a/src/client/containers/Accounts/index.jsx +++ b/src/client/containers/Accounts/index.jsx @@ -237,22 +237,22 @@ class AccountsContainer extends React.Component { extraClass={'hover-accent'} onClick={() => this.props.showModal('CREATE_ACCOUNT')} /> - {helpers.canUser('accounts:import', true) && ( - -