Update frontend.

This commit is contained in:
James Cole
2021-02-25 06:27:43 +01:00
parent 6bd6b1eb95
commit 9aa743b31b
47 changed files with 586 additions and 475 deletions

View File

@@ -197,8 +197,9 @@ export default {
linkTypes: [],
query: '',
searching: false,
links: [],
availableFields: this.customFields
links: this.value,
availableFields: this.customFields,
emitEvent: true
}
},
created() {
@@ -215,8 +216,15 @@ export default {
}
},
watch: {
value: function (value) {
this.emitEvent = false;
this.links = lodashClonedeep(value);
},
links: function (value) {
this.$emit('set-field', {index: this.index, field: 'links', value: lodashClonedeep(value)});
if (true === this.emitEvent) {
this.$emit('set-field', {index: this.index, field: 'links', value: lodashClonedeep(value)});
}
this.emitEvent = true;
},
customFields: function (value) {
this.availableFields = value;