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
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
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
Grégoire Locqueville
purescript-gargantext
Commits
5530fae5
Commit
5530fae5
authored
Oct 22, 2020
by
Przemyslaw Kaminski
Committed by
Alexandre Delanoë
Dec 10, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[react] use defaultChecked when there is no onChange handler
parent
f4e5de5a
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
15 additions
and
14 deletions
+15
-14
FacetsTable.purs
src/Gargantext/Components/FacetsTable.purs
+4
-1
Tools.purs
src/Gargantext/Components/Forest/Tree/Node/Tools.purs
+10
-12
Sidebar.purs
src/Gargantext/Components/GraphExplorer/Sidebar.purs
+1
-1
No files found.
src/Gargantext/Components/FacetsTable.purs
View file @
5530fae5
...
...
@@ -333,7 +333,10 @@ pageCpt = R.hooksComponentWithModule thisModule "page" cpt
, maybeStricken delete [ H.text source ]
, maybeStricken delete [ H.text authors ]
-- , maybeStricken $ intercalate [comma] (pairUrl <$> pairs)
, H.input { type: "checkbox", checked: isChecked id, on: { click: toggleClick } }
, H.input { defaultChecked: isChecked id
, on: { click: toggleClick }
, type: "checkbox"
}
]
, delete: true }
where
...
...
src/Gargantext/Components/Forest/Tree/Node/Tools.purs
View file @
5530fae5
...
...
@@ -248,18 +248,16 @@ checkboxes :: forall a
-> R.State (Set a)
-> R.Element
checkboxes xs (val /\ set) =
H.fieldset {} $ map (
\a -> H.div {} [
H.input { type: "checkbox"
, checked: Set.member a val
, on: { click: \_ -> set
$ const
$ toggleSet a val
}
}
, H.div {} [H.text $ show a]
]
) xs
H.fieldset {} $ map (\a -> H.div {} [ H.input { type: "checkbox"
, defaultChecked: Set.member a val
, on: { click: \_ -> set
$ const
$ toggleSet a val
}
}
, H.div {} [H.text $ show a]
]
) xs
prettyNodeType :: GT.NodeType -> String
...
...
src/Gargantext/Components/GraphExplorer/Sidebar.purs
View file @
5530fae5
...
...
@@ -110,7 +110,7 @@ sideTab (Opened SideTabData) props =
[ RH.span {} [ RH.text text ]
, RH.input { type: "checkbox"
, className: "checkbox"
,
c
hecked: true
,
defaultC
hecked: true
, title: "Mark as completed" } ]
...
...
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