File tree Expand file tree Collapse file tree 2 files changed +2
-11
lines changed
Expand file tree Collapse file tree 2 files changed +2
-11
lines changed Original file line number Diff line number Diff line change @@ -30,9 +30,7 @@ context.rpc.events.on('rpc:is-trusted:updated', (isTrusted) => {
3030 isRpcTrusted .value = isTrusted
3131})
3232
33- // Load settings from context
34- const settingsStore = await context .docks .getSettingsStore ()
35- const settings = sharedStateToRef (settingsStore )
33+ const settings = sharedStateToRef (await context .docks .getSettingsStore ())
3634
3735watch (
3836 () => context .docks .entries ,
@@ -45,12 +43,6 @@ watch(
4543const groupedEntries = computed (() => {
4644 return groupDockEntries (context .docks .entries , settings .value )
4745})
48-
49- function switchEntry(id : string ) {
50- if (id ) {
51- context .docks .switchEntry (id )
52- }
53- }
5446 </script >
5547
5648<template >
@@ -68,7 +60,7 @@ function switchEntry(id: string) {
6860 :groups =" groupedEntries"
6961 :is-vertical =" false"
7062 :selected =" context.docks.selected"
71- @select =" (e) => switchEntry(e?.id)"
63+ @select =" (e) => context.docks. switchEntry(e?.id)"
7264 >
7365 <template #separator >
7466 <div class =" border-base border-b w-full my-2" />
Original file line number Diff line number Diff line change @@ -333,7 +333,6 @@ onMounted(() => {
333333 <DockEntriesWithCategories
334334 :context =" context"
335335 :groups =" groupedEntries.visible"
336- :overflow =" groupedEntries.overflow"
337336 :is-vertical =" context.panel.isVertical"
338337 :selected =" context.docks.selected"
339338 @select =" (e) => context.docks.switchEntry(e?.id)"
You can’t perform that action at this time.
0 commit comments