Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
privatestoragemobile
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Terraform modules
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
PrivateStorage
privatestoragemobile
Commits
390feaf8
Commit
390feaf8
authored
1 year ago
by
meejah
Browse files
Options
Downloads
Patches
Plain Diff
naming
parent
47edb3b2
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!72
Hide the "tech demo" page behind a secret click pattern
Pipeline
#5003
failed
1 year ago
Stage: lint
Stage: build
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
obelisk/frontend/src/App.hs
+5
-4
5 additions, 4 deletions
obelisk/frontend/src/App.hs
with
5 additions
and
4 deletions
obelisk/frontend/src/App.hs
+
5
−
4
View file @
390feaf8
...
...
@@ -48,9 +48,10 @@ data App t = App
}
accum
::
(
Either
T
.
Text
[
MagicFolder
])
->
(
Bool
,
(
Either
T
.
Text
[
MagicFolder
]))
->
(
Bool
,
(
Either
T
.
Text
[
MagicFolder
]))
accum
(
Left
_
)
_
=
(
False
,
Right
[]
)
accum
(
Right
f
)
_
=
(
True
,
Right
f
)
foldLoadState
::
(
Either
T
.
Text
[
MagicFolder
])
->
(
Bool
,
(
Either
T
.
Text
[
MagicFolder
]))
->
(
Bool
,
(
Either
T
.
Text
[
MagicFolder
]))
foldLoadState
(
Left
_
)
_
=
(
False
,
Right
[]
)
foldLoadState
(
Right
f
)
_
=
(
True
,
Right
f
)
-- | Load the initial application state from local configuration.
initialApp
...
...
@@ -79,7 +80,7 @@ initialApp startEv = do
-- in this case, we can only fire once but if this could fire
-- multiple times we should always remain True once we get to
-- True
initializedDyn
<-
foldDyn
accum
(
False
,
Right
[]
)
firstLoadEvent
initializedDyn
<-
foldDyn
foldLoadState
(
False
,
Right
[]
)
firstLoadEvent
-- Create a paired event/function for performing a content refresh on
-- a specific magic-folder.
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment