@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.
- package/build/ft-reader-feedback.d.ts +1 -0
- package/build/ft-reader-feedback.js +4 -1
- package/build/ft-reader-feedback.light.js +63 -61
- package/build/ft-reader-feedback.min.js +27 -25
- package/build/ft-reader-map-feedback.d.ts +1 -0
- package/build/ft-reader-map-feedback.js +4 -0
- package/build/ft-reader-topic-feedback.d.ts +1 -0
- package/build/ft-reader-topic-feedback.js +5 -0
- package/package.json +5 -5
|
@@ -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.
|
|
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
|
}
|