X-Git-Url: https://git.arvados.org/arvados-workbench2.git/blobdiff_plain/6e1ba15c736bacce7dc187f24a33216bb9ad37f3..HEAD:/src/store/link-account-panel/link-account-panel-reducer.ts diff --git a/src/store/link-account-panel/link-account-panel-reducer.ts b/src/store/link-account-panel/link-account-panel-reducer.ts index 3d205842..15d07810 100644 --- a/src/store/link-account-panel/link-account-panel-reducer.ts +++ b/src/store/link-account-panel/link-account-panel-reducer.ts @@ -2,8 +2,8 @@ // // SPDX-License-Identifier: AGPL-3.0 -import { linkAccountPanelActions, LinkAccountPanelAction } from "~/store/link-account-panel/link-account-panel-actions"; -import { UserResource } from "~/models/user"; +import { linkAccountPanelActions, LinkAccountPanelAction } from "store/link-account-panel/link-account-panel-actions"; +import { UserResource } from "models/user"; export enum LinkAccountPanelStatus { NONE, @@ -35,6 +35,7 @@ export interface LinkAccountPanelState { userToLinkToken: string | undefined; status: LinkAccountPanelStatus; error: LinkAccountPanelError; + isProcessing: boolean; } const initialState = { @@ -44,6 +45,7 @@ const initialState = { targetUserToken: undefined, userToLink: undefined, userToLinkToken: undefined, + isProcessing: false, status: LinkAccountPanelStatus.NONE, error: LinkAccountPanelError.NONE }; @@ -74,6 +76,10 @@ export const linkAccountPanelReducer = (state: LinkAccountPanelState = initialSt SET_SELECTED_CLUSTER: ({ selectedCluster }) => ({ ...state, selectedCluster }), + SET_IS_PROCESSING: ({ isProcessing }) =>({ + ...state, + isProcessing + }), HAS_SESSION_DATA: () => ({ ...state, status: LinkAccountPanelStatus.HAS_SESSION_DATA })