Commit 98cdd8d9 authored by Alexandre Delanoë's avatar Alexandre Delanoë

[CLEAN] topbar

parent 6a142a16
Pipeline #3870 failed with stage
in 0 seconds
......@@ -154,6 +154,7 @@ tableHeaderWithRenameBoxedLayoutCpt = here.component "tableHeaderWithRenameBoxed
-- [To Topbar portal]
-- @NOTE #446: UI flicker artfact when user toggle the CTA
-- This is due to a re-render + portal input focus -- lost
{-
R2.createPortal' mTopBarHost
[
R2.fragmentWithKey topBarPortalKey
......@@ -171,6 +172,7 @@ tableHeaderWithRenameBoxedLayoutCpt = here.component "tableHeaderWithRenameBoxed
]
]
,
-}
H.div
{ className: "table-header-rename__title" }
[
......@@ -211,7 +213,7 @@ tableHeaderWithRenameBoxedLayoutCpt = here.component "tableHeaderWithRenameBoxed
cacheText NT.CacheOn = "Cache On"
cacheText NT.CacheOff = "Cache Off"
cacheClick cacheState _ = T.modify_ cacheStateToggle cacheState
-- cacheClick cacheState _ = T.modify_ cacheStateToggle cacheState
cacheStateToggle NT.CacheOn = NT.CacheOff
cacheStateToggle NT.CacheOff = NT.CacheOn
......
......@@ -93,31 +93,27 @@ componentCpt = here.component "main" cpt where
, themes: allThemes
} []
]
,
H.li
{ className: "nav-item main-topbar__lang-switcher" }
[
langSwitcher
{ lang
, langs: allFeLangs
} []
]
,
B.button
{ variant: showTree' ?
ButtonVariant Light $
OutlinedButtonVariant Light
, callback: onTreeToggleClick
, className: "main-topbar__tree-switcher"
}
[
if showTree'
then H.text "Hide Tree"
else H.text "Show Tree"
]
,
H.div
{ id: "portal-topbar" } []
{- ,
H.li { className: "nav-item main-topbar__lang-switcher" }
[ langSwitcher
{ lang
, langs: allFeLangs
} []
]-}
, B.button
{ variant: showTree' ?
ButtonVariant Light $
OutlinedButtonVariant Light
, callback: onTreeToggleClick
, className: "main-topbar__tree-switcher"
}
[
if showTree'
then H.text "Hide Tree"
else H.text "Show Tree"
]
, H.div { id: "portal-topbar" } []
]
-- SB.searchBar {session, databases: allDatabases}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment