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
67e03025
Commit
67e03025
authored
4 years ago
by
Mickael
Browse files
Options
Downloads
Patches
Plain Diff
[US TRTL-268] fix switchmap without debounceTIme ?
parent
c54e9d96
No related branches found
Branches containing commit
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/projects/identity/src/app/profile/profile-detail/information-tab/information-tab.component.ts
+3
-6
3 additions, 6 deletions
...ofile-detail/information-tab/information-tab.component.ts
with
3 additions
and
6 deletions
ui/ui-frontend/projects/identity/src/app/profile/profile-detail/information-tab/information-tab.component.ts
+
3
−
6
View file @
67e03025
...
@@ -36,8 +36,8 @@
...
@@ -36,8 +36,8 @@
*/
*/
import
{
Component
,
Input
,
OnChanges
,
OnDestroy
,
OnInit
,
SimpleChanges
}
from
'
@angular/core
'
;
import
{
Component
,
Input
,
OnChanges
,
OnDestroy
,
OnInit
,
SimpleChanges
}
from
'
@angular/core
'
;
import
{
FormBuilder
,
FormGroup
,
Validators
}
from
'
@angular/forms
'
;
import
{
FormBuilder
,
FormGroup
,
Validators
}
from
'
@angular/forms
'
;
import
{
merge
,
of
,
Subscription
}
from
'
rxjs
'
;
import
{
of
,
Subscription
}
from
'
rxjs
'
;
import
{
catchError
,
debounceTime
,
filter
,
map
,
switchMap
}
from
'
rxjs/operators
'
;
import
{
catchError
,
filter
,
map
,
switchMap
}
from
'
rxjs/operators
'
;
import
{
extend
,
isEmpty
}
from
'
underscore
'
;
import
{
extend
,
isEmpty
}
from
'
underscore
'
;
import
{
AuthService
,
buildValidators
,
diff
,
Profile
,
Role
}
from
'
ui-frontend-common
'
;
import
{
AuthService
,
buildValidators
,
diff
,
Profile
,
Role
}
from
'
ui-frontend-common
'
;
...
@@ -45,8 +45,6 @@ import { AuthService, buildValidators, diff, Profile, Role } from 'ui-frontend-c
...
@@ -45,8 +45,6 @@ import { AuthService, buildValidators, diff, Profile, Role } from 'ui-frontend-c
import
{
ProfileService
}
from
'
../../profile.service
'
;
import
{
ProfileService
}
from
'
../../profile.service
'
;
import
{
ProfileValidators
}
from
'
../../profile.validators
'
;
import
{
ProfileValidators
}
from
'
../../profile.validators
'
;
const
DEBOUNCE_TIME
=
400
;
@
Component
({
@
Component
({
selector
:
'
app-information-tab
'
,
selector
:
'
app-information-tab
'
,
templateUrl
:
'
./information-tab.component.html
'
,
templateUrl
:
'
./information-tab.component.html
'
,
...
@@ -91,9 +89,8 @@ export class InformationTabComponent implements OnDestroy, OnInit, OnChanges {
...
@@ -91,9 +89,8 @@ export class InformationTabComponent implements OnDestroy, OnInit, OnChanges {
});
});
// TODO FIXME GET CUSTOMERID FROM PROFILE
// TODO FIXME GET CUSTOMERID FROM PROFILE
this
.
updateFormSub
=
merge
(
this
.
form
.
valueChanges
,
this
.
form
.
statusChanges
)
this
.
updateFormSub
=
this
.
form
.
valueChanges
.
pipe
(
.
pipe
(
debounceTime
(
DEBOUNCE_TIME
),
map
(()
=>
diff
(
this
.
form
.
value
,
this
.
previousValue
)),
map
(()
=>
diff
(
this
.
form
.
value
,
this
.
previousValue
)),
filter
((
formData
)
=>
!
isEmpty
(
formData
)),
filter
((
formData
)
=>
!
isEmpty
(
formData
)),
map
((
formData
)
=>
this
.
completeRoles
(
formData
)),
map
((
formData
)
=>
this
.
completeRoles
(
formData
)),
...
...
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