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
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
PrivateStorage
privatestoragemobile
Commits
b6af3897
Commit
b6af3897
authored
Jun 23, 2023
by
Jean-Paul Calderone
Browse files
Options
Downloads
Patches
Plain Diff
wip - just starting
parent
05afdfe0
Branches
Branches containing commit
Tags
Tags containing commit
1 merge request
!65
71.refresh magic folder list
Pipeline
#4967
failed
Jun 23, 2023
Stage: lint
Stage: build
Changes
1
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
obelisk/frontend/src/App.hs
+6
-5
6 additions, 5 deletions
obelisk/frontend/src/App.hs
with
6 additions
and
5 deletions
obelisk/frontend/src/App.hs
+
6
−
5
View file @
b6af3897
...
...
@@ -41,8 +41,8 @@ data App t = App
appFolderContents
::
Dynamic
t
(
Map
.
Map
MagicFolder
FolderEntry
)
,
-- | A function which will trigger an update of the contents of one Magic-Folder.
appUpdateFolder
::
MagicFolder
->
IO
()
,
-- | A
fun
ction
which triggers a
reload
of
the list of
all
folders
appUpdateFoldersList
::
Either
T
.
Text
[
MagicFolder
]
->
IO
()
,
-- | A
n a
ction
to execute to
reload the list of folders
from the config file.
appUpdateFoldersList
::
IO
()
}
...
...
@@ -62,12 +62,13 @@ initialApp startEv = do
gridDyn
<-
holdDyn
(
Left
"Loading ..."
)
gridEv
(
updateFoldersListEv
,
updateFoldersList
)
<-
newTriggerEvent
ffor
updateFoldersListEv
magicFoldersDyn
<-
foldDyn
const
(
Left
"loading .."
)
updateFoldersListEv
-- update the folder list immediately at startup
performEvent_
$
ffor
startEv
$
\
()
->
liftIO
$
do
f
<-
loadMagicFolders
updateFoldersList
f
performEvent_
$
ffor
startEv
$
\
()
->
liftIO
updateFoldersList
-- 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