From 63b5b23a490a3f26820c9ad7a9fb3e33a138fa5b Mon Sep 17 00:00:00 2001 From: Severin Beauvais Date: Wed, 21 Feb 2024 14:01:36 -0800 Subject: [PATCH] - app version = 5.9.8 - updated My Business Registry breadcrumb - updated Staff dashboard breadcrumb --- package-lock.json | 4 ++-- package.json | 2 +- src/resources/BreadcrumbResource.ts | 9 +++++++-- 3 files changed, 10 insertions(+), 5 deletions(-) diff --git a/package-lock.json b/package-lock.json index 8cfdc4fdd..c0f2b150f 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "business-create-ui", - "version": "5.9.7", + "version": "5.9.8", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "business-create-ui", - "version": "5.9.7", + "version": "5.9.8", "dependencies": { "@babel/compat-data": "^7.21.5", "@bcrs-shared-components/approval-type": "1.0.19", diff --git a/package.json b/package.json index 56da6c7d2..c57b1b0ce 100644 --- a/package.json +++ b/package.json @@ -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", diff --git a/src/resources/BreadcrumbResource.ts b/src/resources/BreadcrumbResource.ts index 4b1217781..20ea55fa9 100644 --- a/src/resources/BreadcrumbResource.ts +++ b/src/resources/BreadcrumbResource.ts @@ -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 { @@ -43,6 +44,7 @@ export function getEntityDashboardBreadcrumb (): BreadcrumbIF { } } +/** Returns the breadcrumb to the BC Registries dashboard. */ export function getRegistryDashboardBreadcrumb (): BreadcrumbIF { return { text: 'BC Registries Dashboard', @@ -50,13 +52,15 @@ export function getRegistryDashboardBreadcrumb (): BreadcrumbIF { } } +/** 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', @@ -64,9 +68,10 @@ export function getSbcStaffDashboardBreadcrumb (): BreadcrumbIF { } } +/** 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` } }