Browse Source

fix: SingeSelect/MultiSelect webhook trigger (#2309)

* fix: SingleSelect webhook trigger

Signed-off-by: mertmit <mertmit99@gmail.com>

* fix: MultiSelect webhook trigger

Signed-off-by: mertmit <mertmit99@gmail.com>
pull/2342/head
mertmit 2 years ago committed by GitHub
parent
commit
a0ce1eb324
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 8
      packages/nc-gui/components/project/spreadsheet/components/EditableCell.vue
  2. 1
      packages/nc-gui/components/project/spreadsheet/components/editableCell/EnumListEditableCell.vue
  3. 1
      packages/nc-gui/components/project/spreadsheet/components/editableCell/SetListEditableCell.vue

8
packages/nc-gui/components/project/spreadsheet/components/EditableCell.vue

@ -86,6 +86,7 @@
:is-form="isForm"
:column="column"
v-on="parentListeners"
@input="$emit('save')"
/>
<json-editable-cell
@ -101,6 +102,7 @@
v-model="localState"
:column="column"
v-on="parentListeners"
@input="$emit('save')"
/>
<set-list-cell
v-else-if="isSet"
@ -197,9 +199,9 @@ export default {
if (val !== this.value) {
this.changed = true
this.$emit('input', val)
if (this.isAttachment || this.isEnum || this.isBoolean || this.isRating || this.isSet || this.isTime || this.isDateTime || this.isDate) {
if (this.isAttachment || this.isBoolean || this.isRating || this.isTime || this.isDateTime || this.isDate) {
this.syncData()
} else if (!this.isCurrency) {
} else if (!this.isCurrency && !this.isEnum && !this.isSet) {
this.syncDataDebounce(this)
}
}
@ -228,7 +230,7 @@ export default {
// this.$refs.input.focus();
},
beforeDestroy() {
if (this.changed && !(this.isAttachment || this.isEnum || this.isBoolean || this.isRating || this.isSet || this.isTime || this.isDateTime)) {
if (this.changed && !(this.isAttachment || this.isBoolean || this.isRating || this.isTime || this.isDateTime)) {
this.changed = false
this.$emit('change')
}

1
packages/nc-gui/components/project/spreadsheet/components/editableCell/EnumListEditableCell.vue

@ -54,7 +54,6 @@ export default {
},
set(val) {
this.$emit('input', val)
this.$emit('update')
}
},
enumValues() {

1
packages/nc-gui/components/project/spreadsheet/components/editableCell/SetListEditableCell.vue

@ -57,7 +57,6 @@ export default {
},
set(val) {
this.$emit('input', val.filter(v => this.setValues.includes(v)).join(','))
this.$emit('update')
}
},
setValues() {

Loading…
Cancel
Save