Skip to content

Commit

Permalink
Add error tooltip to add user button
Browse files Browse the repository at this point in the history
  • Loading branch information
sam-schu committed Sep 30, 2024
1 parent 2ae97e8 commit ec5357f
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/pages/workflows/workflow/common/PermissionsModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -275,7 +275,11 @@ export const PermissionsModal = (props: WorkflowPermissionsModalProps) => {
</div>
)}
</IdContainer>
<ButtonPrimary disabled={errors} onClick={() => addUser(searchValue)}>
<ButtonPrimary
tooltip={Utils.summarizeErrors(errors?.searchValue)}
disabled={errors?.searchValue}
onClick={() => addUser(searchValue)}
>
Add
</ButtonPrimary>
</div>
Expand Down

0 comments on commit ec5357f

Please sign in to comment.