This commit is contained in:
Henry Jameson 2026-07-22 13:52:00 +03:00
commit d1bf0e607a
4 changed files with 45 additions and 29 deletions

View file

@ -30,7 +30,10 @@ export default {
return pollFallback(this.modelValue, 'pollType')
},
set(newVal) {
this.$emit('update:modelValue', { ...this.modelValue, pollType: newVal })
this.$emit('update:modelValue', {
...this.modelValue,
pollType: newVal,
})
},
},
options: {
@ -39,14 +42,17 @@ export default {
},
set(newVal) {
this.$emit('update:modelValue', { ...this.modelValue, options: newVal })
}
},
},
expiryAmount: {
get() {
return pollFallback(this.modelValue, 'expiryAmount')
},
set(newVal) {
this.$emit('update:modelValue', { ...this.modelValue, expiryAmount: newVal })
this.$emit('update:modelValue', {
...this.modelValue,
expiryAmount: newVal,
})
},
},
expiryUnit: {
@ -54,7 +60,10 @@ export default {
return pollFallback(this.modelValue, 'expiryUnit')
},
set(newVal) {
this.$emit('update:modelValue', { ...this.modelValue, expiryUnit: newVal })
this.$emit('update:modelValue', {
...this.modelValue,
expiryUnit: newVal,
})
},
},
pollLimits() {