[AAE-4515] Provide a way to disable/enable the main file uploading di… (#1981)

* [AAE-4515] Provide a way to disable/enable the main file uploading dialog

* Fix expression has been changed after is has been checked error

* Add unit tests

* Fix linting errors
This commit is contained in:
arditdomi
2021-02-09 20:10:09 +01:00
committed by GitHub
parent 5948580c4c
commit 0f3aa4b589
8 changed files with 77 additions and 17 deletions

View File

@@ -43,7 +43,8 @@ export enum AppActionTypes {
ResetSelection = 'RESET_SELECTION',
SetInfoDrawerState = 'SET_INFO_DRAWER_STATE',
SetInfoDrawerMetadataAspect = 'SET_INFO_DRAWER_METADATA_ASPECT',
CloseModalDialogs = 'CLOSE_MODAL_DIALOGS'
CloseModalDialogs = 'CLOSE_MODAL_DIALOGS',
SetFileUploadingDialog = 'SET_FILE_UPLOADING_DIALOG'
}
export class SetSettingsParameterAction implements Action {
@@ -127,3 +128,9 @@ export class SetRepositoryInfoAction implements Action {
constructor(public payload: RepositoryInfo) {}
}
export class SetFileUploadingDialogAction implements Action {
readonly type = AppActionTypes.SetFileUploadingDialog;
constructor(public payload: boolean) {}
}