Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
V
vitamui-pr-pastis
Manage
Activity
Members
Labels
Code
Merge requests
1
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Operate
Environments
Terraform modules
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
dad
vitamui-pr-pastis
Commits
21f06a25
Commit
21f06a25
authored
4 years ago
by
Makhtar DIAGNE
Browse files
Options
Downloads
Patches
Plain Diff
[FIX DLAB-3306] Sort subrogations
parent
9295ecc9
No related branches found
No related tags found
1 merge request
!1
Feature/design/1
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
ui/ui-frontend-common/src/app/modules/components/customer-select-content/customer-select-content.component.ts
+8
-2
8 additions, 2 deletions
...tomer-select-content/customer-select-content.component.ts
with
8 additions
and
2 deletions
ui/ui-frontend-common/src/app/modules/components/customer-select-content/customer-select-content.component.ts
+
8
−
2
View file @
21f06a25
...
@@ -34,7 +34,7 @@
...
@@ -34,7 +34,7 @@
* The fact that you are presently reading this means that you have had
* The fact that you are presently reading this means that you have had
* knowledge of the CeCILL-C license and that you accept its terms.
* knowledge of the CeCILL-C license and that you accept its terms.
*/
*/
import
{
Component
,
EventEmitter
,
Input
,
Output
}
from
'
@angular/core
'
;
import
{
Component
,
EventEmitter
,
Input
,
OnInit
,
Output
}
from
'
@angular/core
'
;
import
{
ActivatedRoute
,
Router
}
from
'
@angular/router
'
;
import
{
ActivatedRoute
,
Router
}
from
'
@angular/router
'
;
import
{
MenuOption
}
from
'
../navbar
'
;
import
{
MenuOption
}
from
'
../navbar
'
;
import
{
CustomerMenuService
}
from
'
../navbar/customer-menu/customer-menu.service
'
;
import
{
CustomerMenuService
}
from
'
../navbar/customer-menu/customer-menu.service
'
;
...
@@ -44,7 +44,7 @@ import { CustomerMenuService } from '../navbar/customer-menu/customer-menu.servi
...
@@ -44,7 +44,7 @@ import { CustomerMenuService } from '../navbar/customer-menu/customer-menu.servi
templateUrl
:
'
./customer-select-content.component.html
'
,
templateUrl
:
'
./customer-select-content.component.html
'
,
styleUrls
:
[
'
./customer-select-content.component.scss
'
]
styleUrls
:
[
'
./customer-select-content.component.scss
'
]
})
})
export
class
CustomerSelectContentComponent
{
export
class
CustomerSelectContentComponent
implements
OnInit
{
@
Input
()
customers
:
MenuOption
[];
@
Input
()
customers
:
MenuOption
[];
@
Input
()
isModalMenu
:
boolean
;
@
Input
()
isModalMenu
:
boolean
;
...
@@ -56,6 +56,12 @@ export class CustomerSelectContentComponent {
...
@@ -56,6 +56,12 @@ export class CustomerSelectContentComponent {
private
route
:
ActivatedRoute
,
private
route
:
ActivatedRoute
,
private
customerMenuService
:
CustomerMenuService
)
{
}
private
customerMenuService
:
CustomerMenuService
)
{
}
ngOnInit
():
void
{
if
(
this
.
customers
)
{
this
.
customers
.
sort
((
c1
,
c2
)
=>
c1
.
label
.
localeCompare
(
c2
.
label
));
}
}
selectCustomerId
(
customerId
:
string
)
{
selectCustomerId
(
customerId
:
string
)
{
if
(
this
.
isModalMenu
)
{
if
(
this
.
isModalMenu
)
{
this
.
customerMenuService
.
sendSelectedCustomerId
(
customerId
);
this
.
customerMenuService
.
sendSelectedCustomerId
(
customerId
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
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