"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "matomo/plugins/Feedback/vue/src/RateFeature/RateFeature.vue" between
matomo-4.6.0-rc1.tar.gz and matomo-4.6.0-rc2.tar.gz

About: Matomo is a web analytics platform that aims to be an open source alternative to Google Analytics that let you retain ownership and control over your data (formerly Piwik). Release candidate.

RateFeature.vue  (matomo-4.6.0-rc1):RateFeature.vue  (matomo-4.6.0-rc2)
skipping to change at line 255 skipping to change at line 255
doFocusInput() { doFocusInput() {
this.$nextTick(() => { this.$nextTick(() => {
this.focusInput(); this.focusInput();
}); });
}, },
focusInput() { focusInput() {
if (this.$refs.feedbackText != null) { if (this.$refs.feedbackText != null) {
this.$refs.feedbackText.focus(); this.$refs.feedbackText.focus();
} }
}, },
async sendFeedback() { sendFeedback() {
this.errorMessage = null; this.errorMessage = null;
const res = await AjaxHelper.fetch({ AjaxHelper.fetch({
method: 'Feedback.sendFeedbackForFeature', method: 'Feedback.sendFeedbackForFeature',
featureName: this.title, featureName: this.title,
like: this.like ? '1' : '0', like: this.like ? '1' : '0',
choice: this.like ? this.likeReason : this.dislikeReason, choice: this.like ? this.likeReason : this.dislikeReason,
message: this.feedbackMessage, message: this.feedbackMessage,
}).then((res) => {
if (res.value === 'success') {
$('.modal').modal('close');
this.ratingDone = true;
this.feedbackMessage = '';
} else {
this.errorMessage = res.value;
}
}); });
if (res.value === 'success') {
$('.modal').modal('close');
this.ratingDone = true;
this.feedbackMessage = '';
} else {
this.errorMessage = res.value;
}
}, },
}, },
}); });
</script> </script>
 End of changes. 4 change blocks. 
10 lines changed or deleted 10 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)