//
// 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,
userToLinkToken: string | undefined;
status: LinkAccountPanelStatus;
error: LinkAccountPanelError;
+ isProcessing: boolean;
}
const initialState = {
targetUserToken: undefined,
userToLink: undefined,
userToLinkToken: undefined,
+ isProcessing: false,
status: LinkAccountPanelStatus.NONE,
error: LinkAccountPanelError.NONE
};
SET_SELECTED_CLUSTER: ({ selectedCluster }) => ({
...state, selectedCluster
}),
+ SET_IS_PROCESSING: ({ isProcessing }) =>({
+ ...state,
+ isProcessing
+ }),
HAS_SESSION_DATA: () => ({
...state, status: LinkAccountPanelStatus.HAS_SESSION_DATA
})