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 ...@@ -154,6 +154,7 @@ tableHeaderWithRenameBoxedLayoutCpt = here.component "tableHeaderWithRenameBoxed
-- [To Topbar portal] -- [To Topbar portal]
-- @NOTE #446: UI flicker artfact when user toggle the CTA -- @NOTE #446: UI flicker artfact when user toggle the CTA
-- This is due to a re-render + portal input focus -- lost -- This is due to a re-render + portal input focus -- lost
{-
R2.createPortal' mTopBarHost R2.createPortal' mTopBarHost
[ [
R2.fragmentWithKey topBarPortalKey R2.fragmentWithKey topBarPortalKey
...@@ -171,6 +172,7 @@ tableHeaderWithRenameBoxedLayoutCpt = here.component "tableHeaderWithRenameBoxed ...@@ -171,6 +172,7 @@ tableHeaderWithRenameBoxedLayoutCpt = here.component "tableHeaderWithRenameBoxed
] ]
] ]
, ,
-}
H.div H.div
{ className: "table-header-rename__title" } { className: "table-header-rename__title" }
[ [
...@@ -211,7 +213,7 @@ tableHeaderWithRenameBoxedLayoutCpt = here.component "tableHeaderWithRenameBoxed ...@@ -211,7 +213,7 @@ tableHeaderWithRenameBoxedLayoutCpt = here.component "tableHeaderWithRenameBoxed
cacheText NT.CacheOn = "Cache On" cacheText NT.CacheOn = "Cache On"
cacheText NT.CacheOff = "Cache Off" cacheText NT.CacheOff = "Cache Off"
cacheClick cacheState _ = T.modify_ cacheStateToggle cacheState -- cacheClick cacheState _ = T.modify_ cacheStateToggle cacheState
cacheStateToggle NT.CacheOn = NT.CacheOff cacheStateToggle NT.CacheOn = NT.CacheOff
cacheStateToggle NT.CacheOff = NT.CacheOn cacheStateToggle NT.CacheOff = NT.CacheOn
......
...@@ -93,31 +93,27 @@ componentCpt = here.component "main" cpt where ...@@ -93,31 +93,27 @@ componentCpt = here.component "main" cpt where
, themes: allThemes , themes: allThemes
} [] } []
] ]
,
H.li {- ,
{ className: "nav-item main-topbar__lang-switcher" } H.li { className: "nav-item main-topbar__lang-switcher" }
[ [ langSwitcher
langSwitcher { lang
{ lang , langs: allFeLangs
, langs: allFeLangs } []
} [] ]-}
] , B.button
, { variant: showTree' ?
B.button ButtonVariant Light $
{ variant: showTree' ? OutlinedButtonVariant Light
ButtonVariant Light $ , callback: onTreeToggleClick
OutlinedButtonVariant Light , className: "main-topbar__tree-switcher"
, callback: onTreeToggleClick }
, className: "main-topbar__tree-switcher" [
} if showTree'
[ then H.text "Hide Tree"
if showTree' else H.text "Show Tree"
then H.text "Hide Tree" ]
else H.text "Show Tree" , H.div { id: "portal-topbar" } []
]
,
H.div
{ id: "portal-topbar" } []
] ]
-- SB.searchBar {session, databases: allDatabases} -- 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