[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

@@ -44,6 +44,7 @@ export const getDocumentDisplayMode = createSelector(selectApp, (state) => state
export const getRepositoryStatus = createSelector(selectApp, (state) => state.repository);
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 getSideNavState = createSelector(getAppSelection, getNavigationState, (selection, navigation) => {
return {