fix: fields of ref. table not automatically loaded in foreign keys modal

This commit is contained in:
Fabio Di Stasio 2021-03-22 18:04:19 +01:00
parent 13b9840f3d
commit e7401cc96e
1 changed files with 3 additions and 1 deletions

View File

@ -268,8 +268,10 @@ export default {
this.$emit('foreigns-update', this.foreignProxy);
},
selectForeign (event, id) {
if (this.selectedForeignID !== id && !event.target.classList.contains('remove-field'))
if (this.selectedForeignID !== id && !event.target.classList.contains('remove-field')) {
this.selectedForeignID = id;
this.getRefFields();
}
},
getModalInnerHeight () {
const modalBody = document.querySelector('.modal-body');