0
Fork 0
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:
Elena Baidakova 2023-05-17 16:09:29 +04:00
parent 9e9200022c
commit 6512edcbd2
2 changed files with 5 additions and 0 deletions

View file

@ -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"
/>

View file

@ -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`;