[AAE-6294] The list should be refreshed without allowing a used to se… (#2629)

* [AAE-6294] The list should be refreshed without allowing a used to select the same folder already deleted

* Changes done as per comment

* resolved build fails
This commit is contained in:
Sushmitha V
2022-09-12 17:54:19 +05:30
committed by GitHub
parent e173eedb42
commit 49e48abf3a
11 changed files with 51 additions and 9 deletions

View File

@@ -42,5 +42,6 @@ export enum AppActionTypes {
CloseModalDialogs = 'CLOSE_MODAL_DIALOGS',
SetFileUploadingDialog = 'SET_FILE_UPLOADING_DIALOG',
ShowInfoDrawerPreview = 'SHOW_INFO_DRAWER_PREVIEW',
SetInfoDrawerPreviewState = 'SET_INFO_DRAWER_PREVIEW_STATE'
SetInfoDrawerPreviewState = 'SET_INFO_DRAWER_PREVIEW_STATE',
ShowLoaderAction = 'SHOW_LOADER'
}

View File

@@ -125,3 +125,9 @@ export class SetInfoDrawerPreviewStateAction implements Action {
constructor(public payload: boolean) {}
}
export class ShowLoaderAction implements Action {
readonly type = AppActionTypes.ShowLoaderAction;
constructor(public payload: boolean) {}
}

View File

@@ -49,6 +49,7 @@ export const getRepositoryStatus = createSelector(selectApp, (state) => state.re
export const isQuickShareEnabled = createSelector(getRepositoryStatus, (info) => info.status.isQuickShareEnabled);
export const isAdmin = createSelector(selectApp, (state) => state.user.isAdmin);
export const getFileUploadingDialog = createSelector(selectApp, (state) => state.fileUploadingDialog);
export const showLoaderSelector = createSelector(selectApp, (state) => state.showLoader);
export const getSideNavState = createSelector(getAppSelection, getNavigationState, (selection, navigation) => ({
selection,

View File

@@ -46,6 +46,7 @@ export interface AppState {
documentDisplayMode: string;
repository: RepositoryInfo;
fileUploadingDialog: boolean;
showLoader: boolean;
}
export interface AppStore {