projects
/
arvados-workbench2.git
/ blobdiff
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge branch '21128-toolbar-context-menu'
[arvados-workbench2.git]
/
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 3d20584219b90fdd2b48d10182aa01586242e19c..15d07810cd6b64064f936334409655e6a1965d4f 100644
(file)
--- 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
//
// 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,
export enum LinkAccountPanelStatus {
NONE,
@@
-35,6
+35,7
@@
export interface LinkAccountPanelState {
userToLinkToken: string | undefined;
status: LinkAccountPanelStatus;
error: LinkAccountPanelError;
userToLinkToken: string | undefined;
status: LinkAccountPanelStatus;
error: LinkAccountPanelError;
+ isProcessing: boolean;
}
const initialState = {
}
const initialState = {
@@
-44,6
+45,7
@@
const initialState = {
targetUserToken: undefined,
userToLink: undefined,
userToLinkToken: undefined,
targetUserToken: undefined,
userToLink: undefined,
userToLinkToken: undefined,
+ isProcessing: false,
status: LinkAccountPanelStatus.NONE,
error: LinkAccountPanelError.NONE
};
status: LinkAccountPanelStatus.NONE,
error: LinkAccountPanelError.NONE
};
@@
-74,6
+76,10
@@
export const linkAccountPanelReducer = (state: LinkAccountPanelState = initialSt
SET_SELECTED_CLUSTER: ({ selectedCluster }) => ({
...state, selectedCluster
}),
SET_SELECTED_CLUSTER: ({ selectedCluster }) => ({
...state, selectedCluster
}),
+ SET_IS_PROCESSING: ({ isProcessing }) =>({
+ ...state,
+ isProcessing
+ }),
HAS_SESSION_DATA: () => ({
...state, status: LinkAccountPanelStatus.HAS_SESSION_DATA
})
HAS_SESSION_DATA: () => ({
...state, status: LinkAccountPanelStatus.HAS_SESSION_DATA
})