* Moved all view action types into a single file * Moved preferences into their own constants section * Added basic theming support
17 lines
410 B
JavaScript
17 lines
410 B
JavaScript
// Copyright (c) 2016 Mattermost, Inc. All Rights Reserved.
|
|
// See License.txt for license information.
|
|
|
|
import {ViewTypes} from 'app/constants';
|
|
|
|
export function handleServerUrlChanged(serverUrl) {
|
|
return async (dispatch, getState) => {
|
|
dispatch({
|
|
type: ViewTypes.SERVER_URL_CHANGED,
|
|
serverUrl
|
|
}, getState);
|
|
};
|
|
}
|
|
|
|
export default {
|
|
handleServerUrlChanged
|
|
};
|