Skip to content

Commit 6a3434d

Browse files
authored
Merge pull request #2768 from objectcomputing/bugfix-2752/kudos-approval-message
Only show the Kudos approval message if the kudos is public.
2 parents c7dd3a0 + 26d2a88 commit 6a3434d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

web-ui/src/components/kudos_dialog/KudosDialog.jsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -317,13 +317,13 @@ const KudosDialog = ({ open, recipient, teamId, onClose }) => {
317317
value={message}
318318
onChange={handleMessageChange}
319319
/>
320-
<Alert
320+
{publicKudos ? <Alert
321321
severity="info"
322322
style={{ marginTop: '1rem', marginBottom: '2rem' }}
323323
>
324324
Kudos will be visible to admins for approval, then sent to the
325325
recipient.
326-
</Alert>
326+
</Alert> : <div style={{ height: "20px" }}/>}
327327
<Button
328328
variant="contained"
329329
disabled={message.trim().length === 0}

0 commit comments

Comments
 (0)