X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/4a055bfc98a5fc05cc311e2de1ab2213eec5497e..41b06aa91cc156dba92c763beeac741d249ffb01:/src/store/my-account/my-account-panel-actions.ts diff --git a/src/store/my-account/my-account-panel-actions.ts b/src/store/my-account/my-account-panel-actions.ts index 34bb2693db..9e974aa94d 100644 --- a/src/store/my-account/my-account-panel-actions.ts +++ b/src/store/my-account/my-account-panel-actions.ts @@ -3,29 +3,28 @@ // SPDX-License-Identifier: AGPL-3.0 import { Dispatch } from "redux"; -import { RootState } from "~/store/store"; +import { RootState } from "store/store"; import { initialize } from "redux-form"; -import { ServiceRepository } from "~/services/services"; -import { setBreadcrumbs } from "~/store/breadcrumbs/breadcrumbs-actions"; -import { authActions } from "~/store/auth/auth-action"; -import { snackbarActions, SnackbarKind } from "~/store/snackbar/snackbar-actions"; +import { ServiceRepository } from "services/services"; +import { setBreadcrumbs } from "store/breadcrumbs/breadcrumbs-actions"; +import { authActions } from "store/auth/auth-action"; +import { snackbarActions, SnackbarKind } from "store/snackbar/snackbar-actions"; export const MY_ACCOUNT_FORM = 'myAccountForm'; export const loadMyAccountPanel = () => (dispatch: Dispatch, getState: () => RootState, services: ServiceRepository) => { - dispatch(setBreadcrumbs([{ label: 'User profile'}])); + dispatch(setBreadcrumbs([{ label: 'User profile' }])); }; export const saveEditedUser = (resource: any) => async (dispatch: Dispatch, getState: () => RootState, services: ServiceRepository) => { try { await services.userService.update(resource.uuid, resource); - services.authService.saveUser(resource); dispatch(authActions.USER_DETAILS_SUCCESS(resource)); dispatch(initialize(MY_ACCOUNT_FORM, resource)); dispatch(snackbarActions.OPEN_SNACKBAR({ message: "Profile has been updated.", hideDuration: 2000, kind: SnackbarKind.SUCCESS })); - } catch(e) { + } catch (e) { return; } };