From 0e376866a70ceaf91976389bad0ef0f8200dcf12 Mon Sep 17 00:00:00 2001 From: Romein van Buren Date: Mon, 24 Jul 2023 20:07:29 +0200 Subject: [PATCH] Open file tab by default --- frontend/src/components/tabbar.svelte | 2 +- frontend/src/organisms/connection/collection/index.svelte | 2 +- frontend/src/organisms/connection/index.svelte | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/frontend/src/components/tabbar.svelte b/frontend/src/components/tabbar.svelte index 83c9d76..557577c 100644 --- a/frontend/src/components/tabbar.svelte +++ b/frontend/src/components/tabbar.svelte @@ -3,7 +3,7 @@ import Icon from './icon.svelte'; export let tabs = []; - export let selectedKey = {}; + export let selectedKey = ''; export let canAddTab = false; export let multiline = false; diff --git a/frontend/src/organisms/connection/collection/index.svelte b/frontend/src/organisms/connection/collection/index.svelte index 696f8b9..f4f9fbe 100644 --- a/frontend/src/organisms/connection/collection/index.svelte +++ b/frontend/src/organisms/connection/collection/index.svelte @@ -15,7 +15,7 @@ export let host; export let database; export let collection; - export let tab = 'stats'; + export let tab = 'find'; const tabs = { 'stats': { icon: 'chart', title: 'Stats', component: Stats }, diff --git a/frontend/src/organisms/connection/index.svelte b/frontend/src/organisms/connection/index.svelte index 370bfb4..e483cdc 100644 --- a/frontend/src/organisms/connection/index.svelte +++ b/frontend/src/organisms/connection/index.svelte @@ -17,7 +17,7 @@ $: if (path.join('.') !== prevPath) { hostTab = 'status'; dbTab = 'stats'; - collTab = 'stats'; + collTab = 'find'; prevPath = path.join('.'); }