diff --git a/frontend/src/components/grid-items.svelte b/frontend/src/components/grid-items.svelte index c3d7624..e93b0a6 100644 --- a/frontend/src/components/grid-items.svelte +++ b/frontend/src/components/grid-items.svelte @@ -40,14 +40,16 @@ } function select(itemKey) { - activeKey = itemKey; - if (level === 0) { - activePath = [ itemKey ]; + if (activeKey !== itemKey) { + activeKey = itemKey; + if (level === 0) { + activePath = [ itemKey ]; + } + else { + activePath = [ ...path, itemKey ]; + } + dispatch('select', { level, itemKey }); } - else { - activePath = [ ...path, itemKey ]; - } - dispatch('select', { level, itemKey }); } function closeAll() { diff --git a/frontend/src/components/tabbar.svelte b/frontend/src/components/tabbar.svelte index 475ccbd..c9668e1 100644 --- a/frontend/src/components/tabbar.svelte +++ b/frontend/src/components/tabbar.svelte @@ -1,8 +1,10 @@ removeView(e.detail)} + bind:selectedKey={activeViewKey} />
- {#if activeTab === 'list'} -
- -