Client: Fixed bug 69191

The "Save here" button is active on the "Save" panel in the PDF editor from the "Complete" folder.
This commit is contained in:
Akmal Isomadinov 2024-07-17 15:56:05 +05:00
parent 98da68948c
commit 1965f8d4be
2 changed files with 4 additions and 2 deletions

View File

@ -119,6 +119,9 @@ const useSelectFolderDialog = ({}: UseSelectFolderDialogProps) => {
if (!selectedItemSecurity) return false;
if ("Create" in selectedItemSecurity && !selectedItemSecurity.Create)
return true;
return "CopyTo" in selectedItemSecurity
? !selectedItemSecurity?.CopyTo
: !selectedItemSecurity.Copy;
@ -136,4 +139,3 @@ const useSelectFolderDialog = ({}: UseSelectFolderDialogProps) => {
};
export default useSelectFolderDialog;

View File

@ -140,7 +140,7 @@ const Footer = React.memo(
isDisabled={
!withFooterInput
? disableSubmitButton
: disableSubmitButton && !currentFooterInputValue.trim()
: disableSubmitButton || !currentFooterInputValue.trim()
}
onClick={onSubmit}
/>