mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-09-25 06:51:08 +00:00
Fix improper escape.
This commit is contained in:
@@ -140,7 +140,7 @@ export default {
|
||||
|
||||
// post!
|
||||
axios.post('./api/v1/webhooks', data).then((response) => {
|
||||
this.success_message = response.data.message;
|
||||
this.success_message = $.text(response.data.message);
|
||||
// console.log('Will now go to redirectUser()');
|
||||
let webhookId = response.data.data.id;
|
||||
window.location.href = window.previousUrl + '?webhook_id=' + webhookId + '&message=created';
|
||||
|
@@ -187,7 +187,7 @@ export default {
|
||||
|
||||
// post!
|
||||
axios.put('./api/v1/webhooks/' + this.id, data).then((response) => {
|
||||
this.success_message = response.data.message;
|
||||
this.success_message = $.text(response.data.message);
|
||||
// console.log('Will now go to redirectUser()');
|
||||
let webhookId = response.data.data.id;
|
||||
window.location.href = window.previousUrl + '?webhook_id=' + webhookId + '&message=updated';
|
||||
|
@@ -290,7 +290,7 @@ export default {
|
||||
let button = $('#triggerButton');
|
||||
button.prop('disabled', true).addClass('disabled');
|
||||
|
||||
this.success_message = this.$t('firefly.webhook_was_triggered');
|
||||
this.success_message = $.text(this.$t('firefly.webhook_was_triggered'));
|
||||
// TODO actually trigger the webhook.
|
||||
axios.post('./api/v1/webhooks/' + this.id + '/trigger-transaction/' + journalId, {});
|
||||
button.prop('disabled', false).removeClass('disabled');
|
||||
|
Reference in New Issue
Block a user