Allow to cancel hyperchat if message is empty. (#6942)
This commit is contained in:
parent
6d71e53f44
commit
a03d4ca20e
1 changed files with 6 additions and 1 deletions
|
@ -495,7 +495,12 @@ export function CommentCreate(props: Props) {
|
|||
requiresAuth={IS_WEB}
|
||||
/>
|
||||
|
||||
<Button disabled={disabled} button="link" label={__('Cancel')} onClick={() => setIsSupportComment(false)} />
|
||||
<Button
|
||||
disabled={isSubmitting}
|
||||
button="link"
|
||||
label={__('Cancel')}
|
||||
onClick={() => setIsSupportComment(false)}
|
||||
/>
|
||||
</>
|
||||
) : (
|
||||
<>
|
||||
|
|
Loading…
Add table
Reference in a new issue