mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-02-25 18:45:27 -06:00
Merge pull request #7232 from firefly-iii/fix-7227
Fix https://github.com/firefly-iii/firefly-iii/issues/7227
This commit is contained in:
commit
9bfad07f8c
@ -29,7 +29,6 @@
|
|||||||
v-model="delivery"
|
v-model="delivery"
|
||||||
:title="$t('form.webhook_delivery')"
|
:title="$t('form.webhook_delivery')"
|
||||||
class="form-control"
|
class="form-control"
|
||||||
@input="handleInput"
|
|
||||||
name="webhook_delivery"
|
name="webhook_delivery"
|
||||||
>
|
>
|
||||||
<option v-for="delivery in this.deliveries"
|
<option v-for="delivery in this.deliveries"
|
||||||
@ -78,15 +77,15 @@ export default {
|
|||||||
watch: {
|
watch: {
|
||||||
value() {
|
value() {
|
||||||
this.delivery = this.value;
|
this.delivery = this.value;
|
||||||
|
},
|
||||||
|
delivery(newValue) {
|
||||||
|
this.$emit('input', newValue);
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
hasError() {
|
hasError() {
|
||||||
return this.error?.length > 0;
|
return this.error?.length > 0;
|
||||||
},
|
}
|
||||||
handleInput() {
|
|
||||||
this.$emit('input', this.delivery);
|
|
||||||
},
|
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
@ -29,7 +29,6 @@
|
|||||||
v-model="response"
|
v-model="response"
|
||||||
:title="$t('form.webhook_response')"
|
:title="$t('form.webhook_response')"
|
||||||
class="form-control"
|
class="form-control"
|
||||||
@input="handleInput"
|
|
||||||
name="webhook_response"
|
name="webhook_response"
|
||||||
>
|
>
|
||||||
<option v-for="response in this.responses"
|
<option v-for="response in this.responses"
|
||||||
@ -70,7 +69,10 @@ export default {
|
|||||||
watch: {
|
watch: {
|
||||||
value() {
|
value() {
|
||||||
this.response = this.value;
|
this.response = this.value;
|
||||||
}
|
},
|
||||||
|
response(newValue) {
|
||||||
|
this.$emit('input', newValue);
|
||||||
|
}
|
||||||
},
|
},
|
||||||
mounted() {
|
mounted() {
|
||||||
this.response = this.value;
|
this.response = this.value;
|
||||||
@ -83,10 +85,7 @@ export default {
|
|||||||
methods: {
|
methods: {
|
||||||
hasError() {
|
hasError() {
|
||||||
return this.error?.length > 0;
|
return this.error?.length > 0;
|
||||||
},
|
}
|
||||||
handleInput() {
|
|
||||||
this.$emit('input', this.response);
|
|
||||||
},
|
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
@ -29,7 +29,6 @@
|
|||||||
v-model="trigger"
|
v-model="trigger"
|
||||||
:title="$t('form.webhook_trigger')"
|
:title="$t('form.webhook_trigger')"
|
||||||
class="form-control"
|
class="form-control"
|
||||||
@input="handleInput"
|
|
||||||
name="webhook_trigger"
|
name="webhook_trigger"
|
||||||
>
|
>
|
||||||
<option v-for="trigger in this.triggers"
|
<option v-for="trigger in this.triggers"
|
||||||
@ -78,15 +77,15 @@ export default {
|
|||||||
watch: {
|
watch: {
|
||||||
value() {
|
value() {
|
||||||
this.trigger = this.value;
|
this.trigger = this.value;
|
||||||
|
},
|
||||||
|
trigger(newValue) {
|
||||||
|
this.$emit('input', newValue);
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
hasError() {
|
hasError() {
|
||||||
return this.error?.length > 0;
|
return this.error?.length > 0;
|
||||||
},
|
}
|
||||||
handleInput() {
|
|
||||||
this.$emit('input', this.trigger);
|
|
||||||
},
|
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
Loading…
Reference in New Issue
Block a user