fix: Custom attribute not getting changed on conversations (#3965)
This commit is contained in:
committed by
GitHub
parent
74d9203868
commit
2c15d5b4f3
@@ -141,16 +141,6 @@ export default {
|
|||||||
editedValue: null,
|
editedValue: null,
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
validations() {
|
|
||||||
if (this.isAttributeTypeLink) {
|
|
||||||
return {
|
|
||||||
editedValue: { required, url },
|
|
||||||
};
|
|
||||||
}
|
|
||||||
return {
|
|
||||||
editedValue: { required },
|
|
||||||
};
|
|
||||||
},
|
|
||||||
|
|
||||||
computed: {
|
computed: {
|
||||||
formattedValue() {
|
formattedValue() {
|
||||||
@@ -209,6 +199,23 @@ export default {
|
|||||||
return this.editedValue;
|
return this.editedValue;
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
watch: {
|
||||||
|
value() {
|
||||||
|
this.isEditing = false;
|
||||||
|
this.editedValue = this.value;
|
||||||
|
},
|
||||||
|
},
|
||||||
|
|
||||||
|
validations() {
|
||||||
|
if (this.isAttributeTypeLink) {
|
||||||
|
return {
|
||||||
|
editedValue: { required, url },
|
||||||
|
};
|
||||||
|
}
|
||||||
|
return {
|
||||||
|
editedValue: { required },
|
||||||
|
};
|
||||||
|
},
|
||||||
mounted() {
|
mounted() {
|
||||||
this.editedValue = this.formattedValue;
|
this.editedValue = this.formattedValue;
|
||||||
bus.$on(BUS_EVENTS.FOCUS_CUSTOM_ATTRIBUTE, focusAttributeKey => {
|
bus.$on(BUS_EVENTS.FOCUS_CUSTOM_ATTRIBUTE, focusAttributeKey => {
|
||||||
|
|||||||
Reference in New Issue
Block a user