fix: wrong editor height with some conditions

This commit is contained in:
Fabio Di Stasio 2021-07-23 10:56:41 +02:00
parent 62f7e57d0c
commit d7fdf53932
6 changed files with 26 additions and 2 deletions

View File

@ -171,6 +171,10 @@ export default {
if (val) {
this.changeBreadcrumbs({ schema: this.schema, function: this.function });
setTimeout(() => {
this.resizeQueryEditor();
}, 200);
if (this.lastFunction !== this.function)
this.getRoutineData();
}

View File

@ -170,6 +170,10 @@ export default {
if (val) {
this.changeBreadcrumbs({ schema: this.schema, routine: this.routine });
setTimeout(() => {
this.resizeQueryEditor();
}, 200);
if (this.lastRoutine !== this.routine)
this.getRoutineData();
}

View File

@ -218,6 +218,10 @@ export default {
if (val) {
this.changeBreadcrumbs({ schema: this.schema, scheduler: this.scheduler });
setTimeout(() => {
this.resizeQueryEditor();
}, 200);
if (this.lastScheduler !== this.scheduler)
this.getSchedulerData();
}

View File

@ -207,6 +207,10 @@ export default {
if (val) {
this.changeBreadcrumbs({ schema: this.schema, trigger: this.trigger });
setTimeout(() => {
this.resizeQueryEditor();
}, 200);
if (this.lastTrigger !== this.trigger)
this.getTriggerData();
}
@ -252,7 +256,7 @@ export default {
const params = {
uid: this.connection.uid,
schema: this.schema,
trigger: this.workspace.breadcrumbs.trigger
trigger: this.trigger
};
try {

View File

@ -144,6 +144,10 @@ export default {
if (val) {
this.changeBreadcrumbs({ schema: this.schema, triggerFunction: this.function });
setTimeout(() => {
this.resizeQueryEditor();
}, 200);
if (this.lastFunction !== this.function)
await this.getFunctionData();
}
@ -185,7 +189,7 @@ export default {
const params = {
uid: this.connection.uid,
schema: this.schema,
func: this.workspace.breadcrumbs.triggerFunction
func: this.function
};
try {

View File

@ -243,6 +243,10 @@ export default {
if (val) {
this.changeBreadcrumbs({ schema: this.schema, view: this.view });
setTimeout(() => {
this.resizeQueryEditor();
}, 200);
if (this.lastView !== this.view)
this.getViewData();
}