From 36b0b45ab490c16ff844362c5cb09fa4428d4bc4 Mon Sep 17 00:00:00 2001 From: Wing-Kam Wong Date: Tue, 16 Aug 2022 16:13:09 +0800 Subject: [PATCH] feat(gui-v2): provide the sidebar injection state --- packages/nc-gui-v2/components/tabs/Smartsheet.vue | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/packages/nc-gui-v2/components/tabs/Smartsheet.vue b/packages/nc-gui-v2/components/tabs/Smartsheet.vue index 012e0a4b38..5618e2b7ac 100644 --- a/packages/nc-gui-v2/components/tabs/Smartsheet.vue +++ b/packages/nc-gui-v2/components/tabs/Smartsheet.vue @@ -34,7 +34,9 @@ provide(ActiveViewInj, activeView) provide(IsLockedInj, false) provide(ReloadViewDataHookInj, reloadEventHook) provide(FieldsInj, fields) -provide(RightSidebarInj, ref(false)) + +// provide the sidebar injection state +provideSidebar({ storageKey: 'nc-right-sidebar' }) const { isGallery, isGrid, isForm } = useProvideSmartsheetStore(activeView as Ref, meta)