Merge pull request #7232 from firefly-iii/fix-7227

Fix https://github.com/firefly-iii/firefly-iii/issues/7227
This commit is contained in:
James Cole 2023-03-14 18:31:51 +01:00 committed by GitHub
commit 9bfad07f8c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 13 additions and 16 deletions

View File

@ -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>

View File

@ -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,6 +69,9 @@ export default {
watch: { watch: {
value() { value() {
this.response = this.value; this.response = this.value;
},
response(newValue) {
this.$emit('input', newValue);
} }
}, },
mounted() { mounted() {
@ -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>

View File

@ -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>