Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
K
KSZK Status Angular
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
JetBrains YouTrack
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
KSZK
DevTeam
KSZK Status
KSZK Status Angular
Commits
f7c06850
Commit
f7c06850
authored
3 years ago
by
Reményi Gergely
Browse files
Options
Downloads
Patches
Plain Diff
KST-18
: change const vars to consts
parent
3519e0e9
No related branches found
No related tags found
1 merge request
!4
KST-18: order services
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/app/core/service-list/service-list.component.ts
+3
-3
3 additions, 3 deletions
src/app/core/service-list/service-list.component.ts
with
3 additions
and
3 deletions
src/app/core/service-list/service-list.component.ts
+
3
−
3
View file @
f7c06850
...
...
@@ -90,9 +90,9 @@ export class ServiceListComponent implements OnInit {
return
[];
}
services
.
sort
((
a
,
b
)
=>
a
.
isOkay
>
b
.
isOkay
?
1
:
a
.
isOkay
===
b
.
isOkay
?
0
:
-
1
);
le
t
nameCompare
=
(
a
,
b
)
=>
a
.
name
.
localeCompare
(
b
.
name
,
"
hu
"
);
le
t
sortedFailingServices
=
services
.
filter
(
s
=>
s
.
isOkay
===
false
).
sort
(
nameCompare
);
le
t
sortedHealthyServices
=
services
.
filter
(
s
=>
s
.
isOkay
===
true
).
sort
(
nameCompare
);
cons
t
nameCompare
=
(
a
,
b
)
=>
a
.
name
.
localeCompare
(
b
.
name
,
"
hu
"
);
cons
t
sortedFailingServices
=
services
.
filter
(
s
=>
s
.
isOkay
===
false
).
sort
(
nameCompare
);
cons
t
sortedHealthyServices
=
services
.
filter
(
s
=>
s
.
isOkay
===
true
).
sort
(
nameCompare
);
return
sortedFailingServices
.
concat
(
sortedHealthyServices
);
}
...
...
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