set toggleShowDetails() to scroll into the viewport using anchors

This commit is contained in:
Felipe Knorr Kuhn 2021-05-10 22:18:30 -07:00
parent ac91d814d6
commit 8ccdf3973c

View File

@ -192,6 +192,7 @@ export class BlockComponent implements OnInit, OnDestroy {
relativeTo: this.route, relativeTo: this.route,
queryParams: { showDetails: false }, queryParams: { showDetails: false },
queryParamsHandling: 'merge', queryParamsHandling: 'merge',
fragment: 'block'
}); });
} else { } else {
this.showDetails = true; this.showDetails = true;
@ -199,6 +200,7 @@ export class BlockComponent implements OnInit, OnDestroy {
relativeTo: this.route, relativeTo: this.route,
queryParams: { showDetails: true }, queryParams: { showDetails: true },
queryParamsHandling: 'merge', queryParamsHandling: 'merge',
fragment: 'details'
}); });
} }
} }