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
143
Issues
143
List
Board
Labels
Milestones
Merge Requests
8
Merge Requests
8
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
8525b210
Commit
8525b210
authored
Feb 19, 2025
by
Karen Konou
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[Subcorpus] Loading spinner when pending creation
parent
c916a1cc
Pipeline
#7329
passed with stages
in 20 minutes and 8 seconds
Changes
1
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
4 deletions
+10
-4
DocsTable.purs
src/Gargantext/Components/DocsTable.purs
+10
-4
No files found.
src/Gargantext/Components/DocsTable.purs
View file @
8525b210
...
...
@@ -25,7 +25,7 @@ import Effect.Aff (launchAff_)
import Effect.Class (liftEffect)
import Gargantext.Components.App.Store as Store
import Gargantext.Components.Bootstrap as B
import Gargantext.Components.Bootstrap.Types (ButtonVariant(..), ComponentStatus(..), ModalSizing(..), Variant(..))
import Gargantext.Components.Bootstrap.Types (ButtonVariant(..), ComponentStatus(..), ModalSizing(..), Variant(..)
, SpinnerTheme(..)
)
import Gargantext.Components.Category (ratingSimple)
import Gargantext.Components.Category.Types (Category(..), cat2score, markCategoryChecked)
import Gargantext.Components.DocsTable.DocumentFormCreation as DFC
...
...
@@ -226,7 +226,7 @@ docViewCpt = R2.hereComponent here "docView" hCpt
]
]
, H.div { className: "form-group" }
[ if showSearch then searchBar { query, isSubcorpusModalVisibleBox } [] else H.div {} [] ]
[ if showSearch then searchBar { query, isSubcorpusModalVisibleBox
, onSubcorpusCreationPending'
} [] else H.div {} [] ]
]
, R2.row
...
...
@@ -321,7 +321,7 @@ docViewCpt = R2.hereComponent here "docView" hCpt
---------------------------------------------------
type SearchBarProps =
(query :: T.Box Query, isSubcorpusModalVisibleBox :: T.Box Boolean)
(query :: T.Box Query, isSubcorpusModalVisibleBox :: T.Box Boolean
, onSubcorpusCreationPending' :: Boolean
)
searchBar :: R2.Component SearchBarProps
searchBar = R.createElement searchBarCpt
...
...
@@ -329,7 +329,7 @@ searchBar = R.createElement searchBarCpt
searchBarCpt :: R.Component SearchBarProps
searchBarCpt = here.component "searchBar" cpt
where
cpt { query, isSubcorpusModalVisibleBox } _children = do
cpt { query, isSubcorpusModalVisibleBox
, onSubcorpusCreationPending'
} _children = do
query' <- T.useLive T.unequal query
queryText <- T.useBox query'
queryText' <- T.useLive T.unequal queryText
...
...
@@ -360,6 +360,12 @@ searchBarCpt = here.component "searchBar" cpt
, subCorpusButton isSubcorpusModalVisibleBox queryText' query
]
]
, H.div { className: "input-group-append" }
[ R2.when' onSubcorpusCreationPending'
[ B.spinner
{ theme: BorderTheme }
]
]
-- , H.div {className: "col-md-1"} [ searchButton query queryText' ]
]
]
...
...
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