diff --git a/src/components/RequestModal/AdvancedRequester/index.tsx b/src/components/RequestModal/AdvancedRequester/index.tsx index 435c3849a..c54179b93 100644 --- a/src/components/RequestModal/AdvancedRequester/index.tsx +++ b/src/components/RequestModal/AdvancedRequester/index.tsx @@ -185,7 +185,7 @@ const AdvancedRequester: React.FC = ({ ]); useEffect(() => { - if (selectedServer !== null) { + if (selectedServer !== null || selectedUser) { onChange({ folder: selectedFolder !== '' ? selectedFolder : undefined, profile: selectedProfile !== -1 ? selectedProfile : undefined, @@ -203,7 +203,7 @@ const AdvancedRequester: React.FC = ({ ); } - if (!data || selectedServer === null) { + if ((!data || selectedServer === null) && !selectedUser) { return null; } @@ -222,96 +222,106 @@ const AdvancedRequester: React.FC = ({ {intl.formatMessage(messages.advancedoptions)}
-
-
- - -
-
- - -
-
- - -
-
+ {!!data && selectedServer !== null && ( + <> +
+
+ + +
+
+ + +
+
+ + +
+
+ + )} {hasPermission(Permission.MANAGE_REQUESTS) && hasPermission(Permission.MANAGE_USERS) && selectedUser && (