-
-
Notifications
You must be signed in to change notification settings - Fork 1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(admin-ui): Add location id and description to custom routes #2923
feat(admin-ui): Add location id and description to custom routes #2923
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
@@ -53,5 +64,14 @@ export class RouteComponent { | |||
this.title$ = combineLatest([inject(ROUTE_COMPONENT_OPTIONS).title$, breadcrumbLabel$]).pipe( | |||
map(([title, breadcrumbLabel]) => title ?? breadcrumbLabel), | |||
); | |||
|
|||
this.locationId = this.route.snapshot.data.locationId; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is there a default locationId
or can this be undefined
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
both locationId
and description
can be undefined
Are you updating the docs as well? :)
Maybe add a hint here as well, since it's relevant for the tabs right? |
26b4ea5
into
vendure-ecommerce:minor
Description
Add
description
andlocationId
toregisterRouteComponent
andregisterReactRouteComponent
so that users can define custom description and page tabs to their custom routes vis theregisterPageTab
API.Breaking changes
Does this PR include any breaking changes we should be aware of?
no
Screenshots
Checklist
📌 Always:
👍 Most of the time: