Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
atlasui
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Container registry
Model registry
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
INM-1
BDA
software
analysis
atlas
atlasui
Commits
31de9b04
Commit
31de9b04
authored
Apr 12, 2023
by
Schiffer, Christian
Browse files
Options
Downloads
Patches
Plain Diff
Sort tasks by name
parent
b0e0de29
No related branches found
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
microdraw/src/atlas_ui.js
+72
-61
72 additions, 61 deletions
microdraw/src/atlas_ui.js
microdraw/src/microdraw.html
+9
-3
9 additions, 3 deletions
microdraw/src/microdraw.html
with
81 additions
and
64 deletions
microdraw/src/atlas_ui.js
+
72
−
61
View file @
31de9b04
...
...
@@ -120,6 +120,7 @@ var app = new Vue({
enable_auto_rename
:
true
,
annotation_import
:
new
AnnotationImport
(),
annotation_filter
:
null
,
sort_tasks_by_name
:
false
,
task_wizard
:
{
loading
:
false
,
section_data
:
[],
...
...
@@ -150,7 +151,17 @@ var app = new Vue({
}
}
return
annotations
;
},
sorted_tasks
:
function
()
{
if
(
this
.
selected_project
===
null
)
{
// No tasks
return
[];
}
if
(
this
.
sort_tasks_by_name
)
{
return
this
.
selected_project
.
tasks
.
toSorted
((
a
,
b
)
=>
a
.
name
.
localeCompare
(
b
.
name
));
}
return
this
.
selected_project
.
tasks
;
},
},
methods
:
{
getProjects
:
function
()
{
...
...
This diff is collapsed.
Click to expand it.
microdraw/src/microdraw.html
+
9
−
3
View file @
31de9b04
...
...
@@ -254,7 +254,7 @@
<ol
id=
"atlas_task_list"
class=
"list-group atlas_task_list border border-dark rounded bg-light"
v-if=
"selected_project !== null"
>
<li
v-for=
"(task, index) in s
elected_project.
tasks"
<li
v-for=
"(task, index) in s
orted_
tasks"
class=
"list-group-item list-group-item-action"
>
<div
class=
"form-row"
>
<input
v-model=
"task.task_id"
class=
"col-1 form-control"
type=
"text"
readonly
/>
...
...
@@ -290,6 +290,7 @@
</ol>
</div>
<!-- Button group -->
<div
class=
"btn-group"
role=
"group"
>
<button
v-on:click=
"newTask"
type=
"button"
class=
"btn btn-primary"
data-toggle=
"modal"
...
...
@@ -303,6 +304,11 @@
<button
type=
"button"
class=
"btn btn-info"
v-on:click=
"submitAllJobsForProject(selected_project, submitTrainingPredictionJob)"
>
Train+Predict all
</button>
<button
type=
"button"
class=
"btn btn-danger"
v-on:click=
"cancelAllJobsForProject(selected_project)"
>
Cancel all
</button>
</div>
<div
class=
"form-group"
id=
"atlas_ui_task_options"
>
<input
type=
"checkbox"
v-model=
"sort_tasks_by_name"
id=
"atlas_ui_task_sort_by_name"
/>
<label
for=
"atlas_ui_task_sort_by_name"
>
Sort by name
</label><p>
</div>
</div>
<div
class=
"modal-footer"
>
<button
type=
"button"
class=
"btn btn-primary"
data-dismiss=
"modal"
...
...
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