Firefly III: a personal finances manager
PHP accountingbudgetbudgetingbudgetscash-flowcashflowcredit-carddockerexpensesfinancefinancesfinanciallinuxmoneypaycheckpersonal-financephpphp7
Better UI for webhook
James Cole9fbb290d0f74
diff --git a/resources/assets/js/components/webhooks/Edit.vue b/resources/assets/js/components/webhooks/Edit.vueindex 2aa8fbc69d..cd94f49978 100644--- a/resources/assets/js/components/webhooks/Edit.vue+++ b/resources/assets/js/components/webhooks/Edit.vue@@ -187,17 +187,16 @@ export default {// post!axios.put('./api/v1/webhooks/' + this.id, data).then((response) => {- 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';}).catch((error) => {- this.error_message = error.response.data.message;- this.errors.title = error.response.data.errors.title;- this.errors.trigger = error.response.data.errors.trigger;- this.errors.response = error.response.data.errors.response;- this.errors.delivery = error.response.data.errors.delivery;- this.errors.url = error.response.data.errors.url;+ console.log(error);+ // this.error_message = error.response.data.message;+ // this.errors.title = error.response.data.errors.title;+ // this.errors.trigger = error.response.data.errors.trigger;+ // this.errors.response = error.response.data.errors.response;+ // this.errors.delivery = error.response.data.errors.delivery;+ // this.errors.url = error.response.data.errors.url;// enable button again$('#submitButton').prop("disabled", false);diff --git a/resources/lang/en_US/firefly.php b/resources/lang/en_US/firefly.phpindex b2838aab29..e16e11868b 100644--- a/resources/lang/en_US/firefly.php+++ b/resources/lang/en_US/firefly.php@@ -269,6 +269,8 @@ return ['response' => 'Response','visit_webhook_url' => 'Visit webhook URL','reset_webhook_secret' => 'Reset webhook secret',+ 'webhook_stored_link' => '<a href="webhooks/show/{ID}">Webhook #{ID} ("{title}")</a> has been stored.',+ 'webhook_updated_link' => '<a href="webhooks/show/{ID}">Webhook #{ID}</a> ("{title}") has been updated.',// API access'authorization_request' => 'Firefly III v:version Authorization Request',