mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-10-17 01:42:19 +00:00
Update views to edit webhook.
This commit is contained in:
0
public/v1/js/.gitkeep
Normal file → Executable file
0
public/v1/js/.gitkeep
Normal file → Executable file
@@ -93,6 +93,7 @@ export default {
|
|||||||
},
|
},
|
||||||
watch: {
|
watch: {
|
||||||
value() {
|
value() {
|
||||||
|
console.log('Value changed to ' + this.value);
|
||||||
this.trigger = this.value;
|
this.trigger = this.value;
|
||||||
},
|
},
|
||||||
trigger(newValue) {
|
trigger(newValue) {
|
||||||
|
@@ -129,6 +129,8 @@ export default {
|
|||||||
this.id = parseInt(response.data.data.id);
|
this.id = parseInt(response.data.data.id);
|
||||||
|
|
||||||
// trigger value on content
|
// trigger value on content
|
||||||
|
console.log('Trigger is ' + response.data.data.attributes.trigger);
|
||||||
|
// TODO does not need to be hard coded.
|
||||||
if ('STORE_TRANSACTION' === response.data.data.attributes.trigger) {
|
if ('STORE_TRANSACTION' === response.data.data.attributes.trigger) {
|
||||||
this.trigger = 100;
|
this.trigger = 100;
|
||||||
}
|
}
|
||||||
@@ -138,6 +140,18 @@ export default {
|
|||||||
if ('DESTROY_TRANSACTION' === response.data.data.attributes.trigger) {
|
if ('DESTROY_TRANSACTION' === response.data.data.attributes.trigger) {
|
||||||
this.trigger = 120;
|
this.trigger = 120;
|
||||||
}
|
}
|
||||||
|
if ('STORE_BUDGET' === response.data.data.attributes.trigger) {
|
||||||
|
this.trigger = 200;
|
||||||
|
}
|
||||||
|
if ('UPDATE_BUDGET' === response.data.data.attributes.trigger) {
|
||||||
|
this.trigger = 210;
|
||||||
|
}
|
||||||
|
if ('DESTROY_BUDGET' === response.data.data.attributes.trigger) {
|
||||||
|
this.trigger = 220;
|
||||||
|
}
|
||||||
|
if ('STORE_UPDATE_BUDGET_LIMIT' === response.data.data.attributes.trigger) {
|
||||||
|
this.trigger = 230;
|
||||||
|
}
|
||||||
|
|
||||||
// response value
|
// response value
|
||||||
if ('TRANSACTIONS' === response.data.data.attributes.response) {
|
if ('TRANSACTIONS' === response.data.data.attributes.response) {
|
||||||
@@ -146,6 +160,9 @@ export default {
|
|||||||
if ('ACCOUNTS' === response.data.data.attributes.response) {
|
if ('ACCOUNTS' === response.data.data.attributes.response) {
|
||||||
this.response = 210;
|
this.response = 210;
|
||||||
}
|
}
|
||||||
|
if ('BUDGET' === response.data.data.attributes.response) {
|
||||||
|
this.response = 230;
|
||||||
|
}
|
||||||
if ('NONE' === response.data.data.attributes.response) {
|
if ('NONE' === response.data.data.attributes.response) {
|
||||||
this.response = 220;
|
this.response = 220;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user