Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Client
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
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
web-et-numerique
Factory
Resin
Client
Commits
f228c4a2
Commit
f228c4a2
authored
Aug 17, 2023
by
Etienne LOUPIAS
Browse files
Options
Downloads
Patches
Plain Diff
feat(onboarding): sort structure types
parent
66a3ec77
No related branches found
No related tags found
2 merge requests
!572
V2.4.0
,
!570
Resolve "[OnBoarding] - Rajouter un type" : trier les types
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/app/shared/components/structure-type-picker/structure-type-picker.component.ts
+1
-0
1 addition, 0 deletions
.../structure-type-picker/structure-type-picker.component.ts
with
1 addition
and
0 deletions
src/app/shared/components/structure-type-picker/structure-type-picker.component.ts
+
1
−
0
View file @
f228c4a2
...
...
@@ -34,6 +34,7 @@ export class StructureTypePickerComponent implements OnInit {
this
.
structureTypeService
.
getStructureTypes
().
subscribe
((
types
)
=>
{
// Filter "other" structure type
types
=
types
.
filter
((
type
)
=>
type
.
selectable
);
types
=
types
.
sort
((
a
,
b
)
=>
a
.
value
.
localeCompare
(
b
.
value
));
this
.
publicTypes
=
types
.
filter
((
type
)
=>
type
.
category
===
this
.
structureTypeCategoryEnum
.
public
);
this
.
privateTypes
=
types
.
filter
((
type
)
=>
type
.
category
===
this
.
structureTypeCategoryEnum
.
private
);
this
.
privateLucrativeTypes
=
types
.
filter
(
...
...
...
...
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
sign in
to comment