#14-intelligent-groups #21

Merged
jkeffects merged 15 commits from #14-intelligent-groups into main 2024-12-19 09:50:51 +00:00
Showing only changes of commit ce8157e6bf - Show all commits

View file

@ -57,7 +57,7 @@
</div>
<div
class="p-1"
:class="typeof value == 'object' ? 'bg-gray-200' : ''"
:class="typeof value == 'object' && queryMode != 'structure' ? 'bg-gray-200' : ''"
title="Visual Builder"
@click="queryMode = 'builder'"
>
@ -65,7 +65,7 @@
</div>
<div
class="p-1"
:class="typeof value == 'string' ? 'bg-gray-200' : ''"
:class="typeof value == 'string' && queryMode != 'structure' ? 'bg-gray-200' : ''"
title="SQL Editor"
@click="queryMode = 'editor'"
>
@ -136,10 +136,16 @@ export default defineComponent({
} else {
this.value = "";
}
this.activeQueryId = undefined;
},
activeQueryId() {
let query = this.queries.find((t) => t.id == this.activeQueryId)?.query;
if (query != undefined) {
if (typeof query == "string") {
this.queryMode = "editor";
} else {
this.queryMode = "builder";
}
this.value = query;
}
},