Skip to content

Instantly share code, notes, and snippets.

@Retozi
Created August 26, 2015 09:22
Show Gist options
  • Save Retozi/272d0cb1042429935451 to your computer and use it in GitHub Desktop.
Save Retozi/272d0cb1042429935451 to your computer and use it in GitHub Desktop.
Action
export class RECEIVE_LANGUAGES extends McParky.NewRequestAction<GlobalAppStore.State> {
constructor() {
super(Http.getLanguages());
}
write(state: GlobalAppStore.State): void {
state.languages = LanguagesState.writeReceiveLanguages(GlobalAppStore.copy(state.languages), this.res);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment