Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
V
Vlass Manager UI
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
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
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
ssa
Vlass Manager UI
Commits
39662da6
Commit
39662da6
authored
2 months ago
by
Daniel Nemergut
Browse files
Options
Downloads
Patches
Plain Diff
Sorting tiles before they're stored on the component
parent
4c1de35a
No related branches found
Branches containing commit
No related tags found
Tags containing commit
2 merge requests
!32
Merge 2.4.4 UI to main
,
!29
WS-2903 Sort tiles and planes checkboxes
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/app/executions/execution/execution-detail/execution-detail.component.ts
+10
-5
10 additions, 5 deletions
.../execution/execution-detail/execution-detail.component.ts
with
10 additions
and
5 deletions
src/app/executions/execution/execution-detail/execution-detail.component.ts
+
10
−
5
View file @
39662da6
...
...
@@ -89,11 +89,16 @@ export class ExecutionDetailComponent implements OnInit, OnDestroy, OnChanges {
}
refreshTiles
(
newTiles
:
Tile
[])
{
this
.
tiles
=
new
Map
<
string
,
Tile
>
(
newTiles
.
map
(
tile
=>
{
return
[
tile
.
name
,
tile
]}));
for
(
const
controlName
in
this
.
tilesFormGroup
.
controls
)
{
this
.
tilesFormGroup
.
removeControl
(
controlName
);
}
Array
.
from
(
this
.
tiles
.
keys
()).
forEach
(
tile
=>
this
.
tilesFormGroup
.
addControl
(
tile
,
new
FormControl
(
true
)));
// Sort newTiles by name before they're stored on this component
this
.
tiles
=
new
Map
<
string
,
Tile
>
(
newTiles
.
sort
((
a
,
b
)
=>
a
.
name
.
localeCompare
(
b
.
name
,
undefined
,
{
numeric
:
true
}))
.
map
(
tile
=>
[
tile
.
name
,
tile
])
);
for
(
const
controlName
in
this
.
tilesFormGroup
.
controls
)
{
this
.
tilesFormGroup
.
removeControl
(
controlName
);
}
Array
.
from
(
this
.
tiles
.
keys
()).
forEach
(
tile
=>
this
.
tilesFormGroup
.
addControl
(
tile
,
new
FormControl
(
true
)));
}
copyToClipboard
(
text
:
string
):
void
{
...
...
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