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
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
42cf463e
Commit
42cf463e
authored
5 months ago
by
Marlène SIMONDANT
Browse files
Options
Downloads
Patches
Plain Diff
fix(carto) : url params should be kept after coming back from a structure's details
parent
c0a16580
Branches
Branches containing commit
Tags
Tags containing commit
2 merge requests
!945
V3.3.0
,
!941
fix(carto) : url params should be kept after coming back from a structure's details
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/app/structure-list/structure-list.component.ts
+16
-0
16 additions, 0 deletions
src/app/structure-list/structure-list.component.ts
with
16 additions
and
0 deletions
src/app/structure-list/structure-list.component.ts
+
16
−
0
View file @
42cf463e
...
...
@@ -25,6 +25,8 @@ export class StructureListComponent implements OnChanges, OnInit {
public
structure
:
Structure
;
public
printMode
=
false
;
public
savedQuery
=
{};
private
queryParamsCaptured
=
false
;
constructor
(
private
route
:
ActivatedRoute
,
...
...
@@ -92,12 +94,26 @@ export class StructureListComponent implements OnChanges, OnInit {
}
public
showDetails
(
structure
:
Structure
):
void
{
if
(
!
this
.
queryParamsCaptured
)
{
if
(
Object
.
keys
(
this
.
route
.
snapshot
.
queryParams
).
length
>
0
)
{
this
.
savedQuery
=
{
...
this
.
route
.
snapshot
.
queryParams
};
}
this
.
queryParamsCaptured
=
true
;
}
this
.
structure
=
structure
;
this
.
selectedMarkerId
.
emit
(
this
.
structure
.
_id
);
}
public
closeDetails
():
void
{
if
(
this
.
savedQuery
)
{
this
.
router
.
navigate
([],
{
relativeTo
:
this
.
route
,
queryParams
:
this
.
savedQuery
,
queryParamsHandling
:
'
merge
'
,
});
}
this
.
selectedMarkerId
.
emit
();
this
.
queryParamsCaptured
=
false
;
}
public
handleCardHover
(
structure
:
Structure
):
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