Add snack action
This commit is contained in:
parent
13d9350f6d
commit
eced95bcc1
|
|
@ -2,6 +2,7 @@ import * as AppAction from './AppAction';
|
|||
import * as UserAction from './UserAction';
|
||||
import * as MessageAction from './MessageAction';
|
||||
import * as ClientAction from './ClientAction';
|
||||
import dispatcher from '../stores/dispatcher';
|
||||
|
||||
/** Calls all actions to initialize the state. */
|
||||
export function initialLoad() {
|
||||
|
|
@ -13,3 +14,6 @@ export function initialLoad() {
|
|||
UserAction.fetchUsers();
|
||||
}
|
||||
|
||||
export function snack(message) {
|
||||
dispatcher.dispatch({type: 'SNACK', payload: message});
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue