Skip to content
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

19906 Updated breadcrumbs #664

Merged
merged 1 commit into from
Feb 21, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "business-create-ui",
"version": "5.9.7",
"version": "5.9.8",
"private": true,
"appName": "Create UI",
"sbcName": "SBC Common Components",
Expand Down
9 changes: 7 additions & 2 deletions src/resources/BreadcrumbResource.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ function getParams (): string {
return accountId ? `?accountid=${accountId}` : ''
}

/** Returns the breadcrumb to the entity (business) dashboard. */
export function getEntityDashboardBreadcrumb (): BreadcrumbIF {
const getEntityIdentifier: string = store.getEntityIdentifier
return {
Expand All @@ -43,30 +44,34 @@ export function getEntityDashboardBreadcrumb (): BreadcrumbIF {
}
}

/** Returns the breadcrumb to the BC Registries dashboard. */
export function getRegistryDashboardBreadcrumb (): BreadcrumbIF {
return {
text: 'BC Registries Dashboard',
href: `${sessionStorage.getItem('REGISTRY_HOME_URL')}dashboard/${getParams()}`
}
}

/** Returns the breadcrumb to the My Business Registry page. */
export function getMyBusinessRegistryBreadcrumb (): BreadcrumbIF {
return {
text: 'My Business Registry',
href: `${sessionStorage.getItem('BUSINESSES_URL')}business/${getParams()}`
href: `${sessionStorage.getItem('BUSINESSES_URL')}account/${store.getAccountId}/business`
}
}

/** Returns the breadcrumb to the SBC Staff dashboard. */
export function getSbcStaffDashboardBreadcrumb (): BreadcrumbIF {
return {
text: 'Staff Dashboard',
href: `${sessionStorage.getItem('REGISTRY_HOME_URL')}dashboard/${getParams()}`
}
}

/** Returns the breadcrumb to the Staff dashboard. */
export function getStaffDashboardBreadcrumb (): BreadcrumbIF {
return {
text: 'Staff Dashboard',
href: `${sessionStorage.getItem('BUSINESSES_URL')}staff/${getParams()}`
href: `${sessionStorage.getItem('BUSINESSES_URL')}staff/dashboard/active`
}
}
Loading