X-Git-Url: https://git.arvados.org/arvados-workbench2.git/blobdiff_plain/e69ce2f8f14e4272acf5efa4c8a252bc101227ca..25216cc7acedc987c26a159f0b640210c0ef101e:/src/store/link-account-panel/link-account-panel-actions.ts diff --git a/src/store/link-account-panel/link-account-panel-actions.ts b/src/store/link-account-panel/link-account-panel-actions.ts index 6540ee69..5fb6160c 100644 --- a/src/store/link-account-panel/link-account-panel-actions.ts +++ b/src/store/link-account-panel/link-account-panel-actions.ts @@ -3,20 +3,20 @@ // SPDX-License-Identifier: AGPL-3.0 import { Dispatch } from "redux"; -import { RootState } from "~/store/store"; -import { getUserUuid } from "~/common/getuser"; -import { ServiceRepository, createServices, setAuthorizationHeader } from "~/services/services"; -import { setBreadcrumbs } from "~/store/breadcrumbs/breadcrumbs-actions"; -import { snackbarActions, SnackbarKind } from "~/store/snackbar/snackbar-actions"; -import { LinkAccountType, AccountToLink, LinkAccountStatus } from "~/models/link-account"; -import { authActions, getConfig } from "~/store/auth/auth-action"; -import { unionize, ofType, UnionOf } from '~/common/unionize'; -import { UserResource } from "~/models/user"; -import { GroupResource } from "~/models/group"; +import { RootState } from "store/store"; +import { getUserUuid } from "common/getuser"; +import { ServiceRepository, createServices, setAuthorizationHeader } from "services/services"; +import { setBreadcrumbs } from "store/breadcrumbs/breadcrumbs-actions"; +import { snackbarActions, SnackbarKind } from "store/snackbar/snackbar-actions"; +import { LinkAccountType, AccountToLink, LinkAccountStatus } from "models/link-account"; +import { authActions, getConfig } from "store/auth/auth-action"; +import { unionize, ofType, UnionOf } from 'common/unionize'; +import { UserResource } from "models/user"; +import { GroupResource } from "models/group"; import { LinkAccountPanelError, OriginatingUser } from "./link-account-panel-reducer"; -import { login, logout } from "~/store/auth/auth-action"; -import { progressIndicatorActions } from "~/store/progress-indicator/progress-indicator-actions"; -import { WORKBENCH_LOADING_SCREEN } from '~/store/workbench/workbench-actions'; +import { login, logout } from "store/auth/auth-action"; +import { progressIndicatorActions } from "store/progress-indicator/progress-indicator-actions"; +import { WORKBENCH_LOADING_SCREEN } from 'store/workbench/workbench-actions'; export const linkAccountPanelActions = unionize({ LINK_INIT: ofType<{ @@ -91,7 +91,7 @@ export const checkForLinkStatus = () => export const switchUser = (user: UserResource, token: string) => (dispatch: Dispatch, getState: () => RootState, services: ServiceRepository) => { - dispatch(authActions.INIT({ user, token })); + dispatch(authActions.INIT_USER({ user, token })); }; export const linkFailed = () =>