mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-01-06 22:40:14 -05:00
Disabled feedback button if textarea is empty
no issue
This commit is contained in:
parent
9e9200022c
commit
6512edcbd2
2 changed files with 5 additions and 0 deletions
|
@ -2,6 +2,7 @@
|
|||
@buttonText="Send feedback"
|
||||
@successText="Sent"
|
||||
@task={{this.submitFeedback}}
|
||||
@disabled={{this.isDisabled}}
|
||||
@class="gh-btn gh-btn-black gh-btn-icon"
|
||||
data-test-button="submit-lexical-feedback"
|
||||
/>
|
|
@ -11,6 +11,10 @@ export default class FeedbackLexicalSendButtonComponent extends Component {
|
|||
|
||||
@inject config;
|
||||
|
||||
get isDisabled() {
|
||||
return !this.args.feedbackMessage;
|
||||
}
|
||||
|
||||
@task({drop: true})
|
||||
*submitFeedback() {
|
||||
let url = `https://submit-form.com/us6uBWv8`;
|
||||
|
|
Loading…
Reference in a new issue