mirror of
https://github.com/Fabio286/antares.git
synced 2025-02-18 20:50:48 +01:00
Merge branch 'master' of https://github.com/Fabio286/antares into new-tab-system
This commit is contained in:
commit
9f0280b991
@ -267,6 +267,12 @@ export default {
|
|||||||
addNotification: 'notifications/addNotification'
|
addNotification: 'notifications/addNotification'
|
||||||
}),
|
}),
|
||||||
confirmForeignsChange () {
|
confirmForeignsChange () {
|
||||||
|
this.foreignProxy = this.foreignProxy.filter(foreign =>
|
||||||
|
foreign.field &&
|
||||||
|
foreign.refField &&
|
||||||
|
foreign.table &&
|
||||||
|
foreign.refTable
|
||||||
|
);
|
||||||
this.$emit('foreigns-update', this.foreignProxy);
|
this.$emit('foreigns-update', this.foreignProxy);
|
||||||
},
|
},
|
||||||
selectForeign (event, id) {
|
selectForeign (event, id) {
|
||||||
@ -331,6 +337,8 @@ export default {
|
|||||||
this.selectedForeignID = this.foreignProxy.length ? this.foreignProxy[0]._id : '';
|
this.selectedForeignID = this.foreignProxy.length ? this.foreignProxy[0]._id : '';
|
||||||
},
|
},
|
||||||
async getRefFields () {
|
async getRefFields () {
|
||||||
|
if (!this.selectedForeignObj.refTable) return;
|
||||||
|
|
||||||
const params = {
|
const params = {
|
||||||
uid: this.connection.uid,
|
uid: this.connection.uid,
|
||||||
schema: this.selectedForeignObj.refSchema,
|
schema: this.selectedForeignObj.refSchema,
|
||||||
|
@ -186,6 +186,7 @@ export default {
|
|||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
confirmIndexesChange () {
|
confirmIndexesChange () {
|
||||||
|
this.indexesProxy = this.indexesProxy.filter(index => index.fields.length);
|
||||||
this.$emit('indexes-update', this.indexesProxy);
|
this.$emit('indexes-update', this.indexesProxy);
|
||||||
},
|
},
|
||||||
selectIndex (event, id) {
|
selectIndex (event, id) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user