refactor(core): change state service method names according to action names

pull/2431/head
TheDiaval 6 years ago
parent 0114677c63
commit 5449e2475b

@ -50,15 +50,15 @@ export class ConfigStateService {
return this.store.selectSnapshot(ConfigState.getLocalization(...args));
}
addData() {
dispatchGetAppConfiguration() {
return this.store.dispatch(new GetAppConfiguration());
}
patchRoute(name: string, newValue: Partial<ABP.Route>) {
dispatchPatchRouteByName(name: string, newValue: Partial<ABP.Route>) {
return this.store.dispatch(new PatchRouteByName(name, newValue));
}
addRoute(payload: Omit<ABP.Route, 'children'>) {
dispatchAddRoute(payload: Omit<ABP.Route, 'children'>) {
return this.store.dispatch(new AddRoute(payload));
}
}

@ -14,15 +14,15 @@ export class ProfileStateService {
return this.store.selectSnapshot(ProfileState.getProfile);
}
fetchProfile() {
dispatchGetProfile() {
return this.store.dispatch(new GetProfile());
}
updateProfile(payload: Profile.Response) {
dispatchUpdateProfile(payload: Profile.Response) {
return this.store.dispatch(new UpdateProfile(payload));
}
changePassword(payload: Profile.ChangePasswordRequest) {
dispatchChangePassword(payload: Profile.ChangePasswordRequest) {
return this.store.dispatch(new ChangePassword(payload));
}
}

@ -18,11 +18,11 @@ export class SessionStateService {
return this.store.selectSnapshot(SessionState.getTenant);
}
setLanguage(payload: string) {
dispatchSetLanguage(payload: string) {
return this.store.dispatch(new SetLanguage(payload));
}
setTenant(payload: ABP.BasicItem) {
dispatchSetTenant(payload: ABP.BasicItem) {
return this.store.dispatch(new SetTenant(payload));
}
}

Loading…
Cancel
Save