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
142
Issues
142
List
Board
Labels
Milestones
Merge Requests
6
Merge Requests
6
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
d51a608e
Commit
d51a608e
authored
Sep 09, 2020
by
Przemyslaw Kaminski
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[annuaire,texts] clear cache toggle button
parent
15fe348f
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
3 deletions
+6
-3
Annuaire.purs
src/Gargantext/Components/Nodes/Annuaire.purs
+3
-2
Texts.purs
src/Gargantext/Components/Nodes/Texts.purs
+3
-1
No files found.
src/Gargantext/Components/Nodes/Annuaire.purs
View file @
d51a608e
...
...
@@ -7,12 +7,13 @@ import Data.List as L
import Data.Maybe (Maybe(..), maybe, fromMaybe)
import Data.Tuple (fst, snd)
import Data.Tuple.Nested ((/\))
import Effect.Aff (Aff)
import Effect.Aff (Aff
, launchAff_
)
import Reactix as R
import Reactix.DOM.HTML as H
import Gargantext.Prelude
import Gargantext.Components.NgramsTable.Loader (clearCache)
import Gargantext.Components.Nodes.Annuaire.User.Contacts.Types as CT
import Gargantext.Components.Nodes.Lists.Types as NT
import Gargantext.Components.Table as T
...
...
@@ -92,7 +93,7 @@ annuaireCpt = R2.hooksComponent thisModule "annuaire" cpt
cacheState <- R.useState' NT.CacheOn
pure $ R.fragment
[ T.tableHeaderLayout { afterCacheStateChange: \_ ->
pur
e unit
[ T.tableHeaderLayout { afterCacheStateChange: \_ ->
launchAff_ $ clearCach
e unit
, cacheState
, date
, desc: name
...
...
src/Gargantext/Components/Nodes/Texts.purs
View file @
d51a608e
...
...
@@ -5,11 +5,13 @@ import Data.Generic.Rep (class Generic)
import Data.Generic.Rep.Show (genericShow)
import Data.Maybe (Maybe(..))
import Data.Tuple.Nested ((/\))
import Effect.Aff (launchAff_)
import Reactix as R
import Reactix.DOM.HTML as H
--------------------------------------------------------
import Gargantext.Components.DocsTable as DT
import Gargantext.Components.Loader (loader)
import Gargantext.Components.NgramsTable.Loader (clearCache)
import Gargantext.Components.Node (NodePoly(..))
import Gargantext.Components.Nodes.Corpus (loadCorpusWithChild)
import Gargantext.Components.Nodes.Corpus.Chart.Histo (histo)
...
...
@@ -64,7 +66,7 @@ textsLayoutWithKeyCpt = R2.hooksComponent thisModule "textsLayoutWithKey" cpt
title = "Corpus " <> name
R.fragment [
Table.tableHeaderLayout { afterCacheStateChange: \_ ->
pur
e unit
Table.tableHeaderLayout { afterCacheStateChange: \_ ->
launchAff_ $ clearCach
e unit
, cacheState
, date
, desc
...
...
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