Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
purescript-gargantext
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
140
Issues
140
List
Board
Labels
Milestones
Merge Requests
4
Merge Requests
4
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
gargantext
purescript-gargantext
Commits
98cdd8d9
Commit
98cdd8d9
authored
Apr 11, 2023
by
Alexandre Delanoë
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[CLEAN] topbar
parent
6a142a16
Pipeline
#3870
failed with stage
in 0 seconds
Changes
2
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
24 additions
and
26 deletions
+24
-26
Table.purs
src/Gargantext/Components/Table.purs
+3
-1
TopBar.purs
src/Gargantext/Components/TopBar.purs
+21
-25
No files found.
src/Gargantext/Components/Table.purs
View file @
98cdd8d9
...
...
@@ -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
...
...
src/Gargantext/Components/TopBar.purs
View file @
98cdd8d9
...
...
@@ -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}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment