diff --git a/app/views/NewServerView/index.tsx b/app/views/NewServerView/index.tsx index 12a3bc8a7..7bb3d0874 100644 --- a/app/views/NewServerView/index.tsx +++ b/app/views/NewServerView/index.tsx @@ -116,12 +116,21 @@ class NewServerView extends React.Component) { + if (prevProps.connecting !== this.props.connecting) { + this.setHeader(); + } + } + setHeader = () => { - const { previousServer, navigation } = this.props; + const { previousServer, navigation, connecting } = this.props; if (previousServer) { return navigation.setOptions({ headerTitle: I18n.t('Workspaces'), - headerLeft: () => + headerLeft: () => + !connecting ? ( + + ) : null }); } @@ -162,6 +171,7 @@ class NewServerView extends React.Component { const { dispatch, previousServer } = this.props; + dispatch(inviteLinksClear()); if (previousServer) { dispatch(selectServerRequest(previousServer));