From dd86d46659b0168a6485aacc780f7d55f9295be7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9verin=20Beauvais?= Date: Thu, 14 Nov 2024 13:15:57 -0800 Subject: [PATCH] 24423 Added conditional dashboard redirect (#703) - app version = 7.4.5 - on start, redirect to new dashboard if FF is True Co-authored-by: Severin Beauvais --- package-lock.json | 4 ++-- package.json | 2 +- src/App.vue | 9 +++++++++ 3 files changed, 12 insertions(+), 3 deletions(-) diff --git a/package-lock.json b/package-lock.json index 82a42a890..a33ad8529 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "business-filings-ui", - "version": "7.4.4", + "version": "7.4.5", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "business-filings-ui", - "version": "7.4.4", + "version": "7.4.5", "dependencies": { "@babel/compat-data": "^7.21.5", "@bcrs-shared-components/base-address": "2.0.9", diff --git a/package.json b/package.json index 7e425a9be..8695b2899 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "business-filings-ui", - "version": "7.4.4", + "version": "7.4.5", "private": true, "appName": "Filings UI", "sbcName": "SBC Common Components", diff --git a/src/App.vue b/src/App.vue index b00a58c3a..869ffdde0 100644 --- a/src/App.vue +++ b/src/App.vue @@ -448,6 +448,15 @@ export default class App extends Mixins( console.log('Error fetching user info or updating Launch Darkly =', error) } + // now that LaunchDarkly has been updated (ie, in case of user targeting), + // check whether to use this Entity Dashboard or the new Business Dashboard + if (GetFeatureFlag('use-business-dashboard')) { + const identifier = (this.businessId || this.tempRegNumber) + const dashboardUrl = `${this.getBusinessDashUrl}/${identifier}${this.$route.fullPath}` + navigate(dashboardUrl) + return + } + // is this a business entity? if (this.businessId) { try {