Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
L
LarvaTagger.jl
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
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
Nyx
LarvaTagger.jl
Commits
72c214c9
Commit
72c214c9
authored
5 months ago
by
François LAURENT
Browse files
Options
Downloads
Patches
Plain Diff
fix: backend menu bug following MR
!21
parent
1142f4e0
No related branches found
No related tags found
1 merge request
!22
Set of commits to be tagger v0.19
Pipeline
#143635
passed
5 months ago
Stage: test
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/wgl.jl
+7
-5
7 additions, 5 deletions
src/wgl.jl
with
7 additions
and
5 deletions
src/wgl.jl
+
7
−
5
View file @
72c214c9
...
@@ -905,7 +905,7 @@ end
...
@@ -905,7 +905,7 @@ end
function
filemenu
(
controller
;
kwargs
...
)
function
filemenu
(
controller
;
kwargs
...
)
wd
=
getworkingdir
(
controller
)
wd
=
getworkingdir
(
controller
)
dir
=
joinpath
(
wd
.
root
,
wd
.
path
[])
dir
=
joinpath
(
wd
.
root
,
wd
.
path
[])
browser
=
FileBrowser
(
dir
;
root
=
wd
.
root
,
upload_button
=
tru
e
)
browser
=
FileBrowser
(
dir
;
root
=
wd
.
root
,
upload_button
=
fals
e
)
on
(
FileBrowsers
.
selectedfile
(
browser
))
do
file
on
(
FileBrowsers
.
selectedfile
(
browser
))
do
file
tryopenfile
(
controller
,
file
;
reload
=
true
)
tryopenfile
(
controller
,
file
;
reload
=
true
)
end
end
...
@@ -916,9 +916,11 @@ function filemenu(controller; kwargs...)
...
@@ -916,9 +916,11 @@ function filemenu(controller; kwargs...)
wd
.
path
[]
=
dir
wd
.
path
[]
=
dir
wd
.
content
[]
=
[
d
for
(
_
,
d
)
in
browser
.
model
.
content
[]]
wd
.
content
[]
=
[
d
for
(
_
,
d
)
in
browser
.
model
.
content
[]]
end
end
on
(
FilePickers
.
uploadedfile
(
browser
))
do
fileinfo
if
FileBrowsers
.
supports_upload
(
browser
)
filepath
=
joinpath
(
workingdir
[],
fileinfo
[
"name"
])
on
(
FilePickers
.
uploadedfile
(
browser
))
do
fileinfo
saveinputfile
(
filepath
,
fileinfo
[
"content"
])
filepath
=
joinpath
(
workingdir
[],
fileinfo
[
"name"
])
saveinputfile
(
filepath
,
fileinfo
[
"content"
])
end
end
end
return
FileMenu
(
gethub
(
controller
),
browser
)
return
FileMenu
(
gethub
(
controller
),
browser
)
end
end
...
@@ -990,7 +992,7 @@ end
...
@@ -990,7 +992,7 @@ end
function
Bonito.jsrender
(
session
::
Session
,
bs
::
BackendMenu
)
function
Bonito.jsrender
(
session
::
Session
,
bs
::
BackendMenu
)
node
=
lowerdom
(
session
,
bs
)
node
=
lowerdom
(
session
,
bs
)
onjs
(
session
,
bs
.
backends
.
model_instances
,
js
"""(options) => {
onjs
(
session
,
bs
.
backends
.
model_instances
,
js
"""(options) => {
select = document.querySelector(
$
(dom_selector(bs)) + ' > select');
select = document.querySelector
All
(
$
(dom_selector(bs)) + ' > select')
[1]
;
LarvaTagger.updateSelectOptions(select, options);
LarvaTagger.updateSelectOptions(select, options);
}"""
)
}"""
)
return
node
return
node
...
...
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