minimal sql console API and UI
This commit is contained in:
+8
-1
@@ -115,6 +115,13 @@ window.app.store = store({
|
||||
label: "Import collections",
|
||||
},
|
||||
],
|
||||
Debug: [
|
||||
{
|
||||
href: "#/settings/sql",
|
||||
icon: "ri-terminal-box-line",
|
||||
label: "SQL console",
|
||||
},
|
||||
],
|
||||
},
|
||||
|
||||
predefinedAccentColors: [
|
||||
@@ -205,7 +212,7 @@ window.app.store = store({
|
||||
addOrUpdateCollection(collection) {
|
||||
const index = app.store.collections.findIndex((c) => c.id == collection.id);
|
||||
if (index >= 0) {
|
||||
if (app.store.activeCollection.id == collection.id) {
|
||||
if (app.store.activeCollection?.id == collection.id) {
|
||||
app.store._activeCollectionIdOrName = collection.id;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user