removed root_new_server
This commit is contained in:
parent
a33eeee317
commit
64f4cc3cf1
|
@ -8,7 +8,7 @@ import * as List from '../../containers/List';
|
||||||
import Button from '../../containers/Button';
|
import Button from '../../containers/Button';
|
||||||
import { toggleServerDropdown as toggleServerDropdownAction } from '../../actions/rooms';
|
import { toggleServerDropdown as toggleServerDropdownAction } from '../../actions/rooms';
|
||||||
import { selectServerRequest as selectServerRequestAction, serverInitAdd as serverInitAddAction } from '../../actions/server';
|
import { selectServerRequest as selectServerRequestAction, serverInitAdd as serverInitAddAction } from '../../actions/server';
|
||||||
import { appStart as appStartAction, ROOT_NEW_SERVER } from '../../actions/app';
|
import { appStart as appStartAction, ROOT_OUTSIDE } from '../../actions/app';
|
||||||
import RocketChat from '../../lib/rocketchat';
|
import RocketChat from '../../lib/rocketchat';
|
||||||
import I18n from '../../i18n';
|
import I18n from '../../i18n';
|
||||||
import EventEmitter from '../../utils/events';
|
import EventEmitter from '../../utils/events';
|
||||||
|
@ -110,7 +110,7 @@ class ServerDropdown extends Component {
|
||||||
navToNewServer = previousServer => {
|
navToNewServer = previousServer => {
|
||||||
const { appStart, initAdd } = this.props;
|
const { appStart, initAdd } = this.props;
|
||||||
batch(() => {
|
batch(() => {
|
||||||
appStart({ root: ROOT_NEW_SERVER });
|
appStart({ root: ROOT_OUTSIDE });
|
||||||
initAdd(previousServer);
|
initAdd(previousServer);
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in New Issue