1
1
mirror of https://github.com/Fabio286/antares.git synced 2025-02-21 14:10:42 +01:00

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

View File

@ -268,8 +268,10 @@ export default {
this.$emit('foreigns-update', this.foreignProxy); this.$emit('foreigns-update', this.foreignProxy);
}, },
selectForeign (event, id) { 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.selectedForeignID = id;
this.getRefFields();
}
}, },
getModalInnerHeight () { getModalInnerHeight () {
const modalBody = document.querySelector('.modal-body'); const modalBody = document.querySelector('.modal-body');