Skip to content

Commit

Permalink
24423 Added conditional dashboard redirect (#703)
Browse files Browse the repository at this point in the history
- app version = 7.4.5
- on start, redirect to new dashboard if FF is True

Co-authored-by: Severin Beauvais <[email protected]>
  • Loading branch information
severinbeauvais and Severin Beauvais authored Nov 14, 2024
1 parent 58e296b commit dd86d46
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 3 deletions.
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-filings-ui",
"version": "7.4.4",
"version": "7.4.5",
"private": true,
"appName": "Filings UI",
"sbcName": "SBC Common Components",
Expand Down
9 changes: 9 additions & 0 deletions src/App.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit dd86d46

Please sign in to comment.