@fluid-topics/ft-reader-feedback 1.0.31 → 1.0.34

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -47,5 +47,6 @@ export declare class FtReaderFeedback extends FtLitElementWithI18n implements Ft
47
47
  private renderFeedbackSection;
48
48
  private sendFeedback;
49
49
  private placeholderInEditor;
50
+ private onMailerFeedbackSent;
50
51
  clearFeedbackInput(): void;
51
52
  }
@@ -181,7 +181,7 @@ class FtReaderFeedback extends FtLitElementWithI18n {
181
181
  <ft-button primary
182
182
  class="ft-reader-feedback--send-feedback"
183
183
  ?disabled=${!this.feedbackMessage}
184
- @click=${() => mailLink ? this.clearFeedbackInput() : this.sendFeedback()}
184
+ @click=${() => mailLink ? this.onMailerFeedbackSent() : this.sendFeedback()}
185
185
  part="send-feedback">
186
186
  ${feedback.messages.okButton()}
187
187
  </ft-button>
@@ -223,6 +223,9 @@ class FtReaderFeedback extends FtLitElementWithI18n {
223
223
  </div>
224
224
  ` : nothing;
225
225
  }
226
+ onMailerFeedbackSent() {
227
+ this.dispatchEvent(new CustomEvent("mailer-feedback"));
228
+ }
226
229
  clearFeedbackInput() {
227
230
  setTimeout(() => this.feedbackInput.value = "", 0);
228
231
  }