15 lines
443 B
JavaScript
15 lines
443 B
JavaScript
// Copyright (c) 2016 Mattermost, Inc. All Rights Reserved.
|
|
// See License.txt for license information.
|
|
|
|
import {NavigationTypes} from 'app/constants';
|
|
import Routes from 'app/navigation/routes';
|
|
|
|
export function goToSelectServer() {
|
|
return async (dispatch, getState) => {
|
|
dispatch({
|
|
type: NavigationTypes.NAVIGATION_RESET,
|
|
routes: [Routes.SelectServer],
|
|
index: 0
|
|
}, getState);
|
|
};
|
|
}
|