Skip to content

Commit

Permalink
Update for PR.
Browse files Browse the repository at this point in the history
  • Loading branch information
pwei1018 committed Sep 29, 2022
1 parent 8fa0de8 commit 66afed3
Show file tree
Hide file tree
Showing 7 changed files with 11 additions and 10 deletions.
2 changes: 1 addition & 1 deletion .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ REGISTRY_ACCOUNT_CREATE_URL = "https://dev.bcregistry.ca/business/auth/choose-au
KEYCLOAK_CONFIG_PATH = "keycloak-dev.json"
AUTH_API_URL = "https://auth-api-dev.apps.silver.devops.gov.bc.ca/api/v1/"
STATUS_API_URL = "https://status-api-dev.apps.silver.devops.gov.bc.ca/api/v1/"
BCROS_LD_CLIENT_ID = ""
BCREGISTRY_LD_CLIENT_ID = ""
RPT_URL="https://staging.www.etax.gov.bc.ca/bts/Web.BCOnl/WebServices/BCO/login"
BUSINESS_SEARCH_URL = "https://dev.bcregistry.ca/business/search"
BUS_SEARCH_LEARN_MORE = "https://www2.gov.bc.ca/gov/content?id=B75BE1375F084B138B60D62C0094D9E8"
Expand Down
2 changes: 1 addition & 1 deletion assets/scss/base.scss
Original file line number Diff line number Diff line change
Expand Up @@ -434,6 +434,6 @@ a.link {
visibility: inherit;
}

.colour-dk-text {
.color-dk-text {
color: $dk-text !important;
}
2 changes: 1 addition & 1 deletion cloudbuild-cd.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ steps:
- 'STATUS_API_URL=$_STATUS_API_URL'
- 'ADDRESSCHANGE_URL=$_ADDRESSCHANGE_URL'
- 'BUSINESS_URL=$_BUSINESS_URL'
- 'BCROS_LD_CLIENT_ID=$_BCROS_LD_CLIENT_ID'
- 'BCREGISTRY_LD_CLIENT_ID=$_BCREGISTRY_LD_CLIENT_ID'
- 'RPT_URL=$_RPT_URL'
- 'BUSINESS_SEARCH_URL=$_BUSINESS_SEARCH_URL'
- 'BUS_SEARCH_LEARN_MORE=$_BUS_SEARCH_LEARN_MORE'
Expand Down
2 changes: 1 addition & 1 deletion cloudbuild-pr.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ steps:
- 'STATUS_API_URL=$_STATUS_API_URL'
- 'ADDRESSCHANGE_URL=$_ADDRESSCHANGE_URL'
- 'BUSINESS_URL=$_BUSINESS_URL'
- 'BCROS_LD_CLIENT_ID=$BCROS_LD_CLIENT_ID'
- 'BCREGISTRY_LD_CLIENT_ID=$BCREGISTRY_LD_CLIENT_ID'
- 'RPT_URL=$_RPT_URL'
- 'BUSINESS_SEARCH_URL=$_BUSINESS_SEARCH_URL'
- 'BUS_SEARCH_LEARN_MORE=$_BUS_SEARCH_LEARN_MORE'
Expand Down
7 changes: 3 additions & 4 deletions layouts/default.vue
Original file line number Diff line number Diff line change
@@ -1,14 +1,13 @@
<template>
<v-app id="app">
<SbcHeader class="sbc-header" :in-auth="false" />
<SbcHeader class="sbc-header" />

<!-- Alert banner -->
<v-alert
v-if="bannerText"
tile dense
icon=" "
type="warning"
class="mb-0 text-center colour-dk-text"
class="mb-0 text-center color-dk-text"
v-html="bannerText"
/>

Expand Down Expand Up @@ -37,7 +36,7 @@ export default {
isShowBreadcrumb (): boolean {
return !isLoginRoute()
},
bannerText (): string | null {
bannerText (): string {
const bannerText: string = getFeatureFlag('banner-text')
// remove spaces so that " " becomes falsy
Expand Down
2 changes: 1 addition & 1 deletion nuxt.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ export default {
regAccountCreateURL: process.env.REGISTRY_ACCOUNT_CREATE_URL,
authAPIURL: process.env.AUTH_API_URL,
statusAPIURL: process.env.STATUS_API_URL,
ldClientId: process.env.BCROS_LD_CLIENT_ID,
ldClientId: process.env.BCREGISTRY_LD_CLIENT_ID,
// as composite variables:
keycloakConfigPath: process.env.BCROS_BASE_URL + process.env.KEYCLOAK_CONFIG_PATH
+ `?${new Date().getTime()}`,
Expand Down
4 changes: 3 additions & 1 deletion utils/feature-flags.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,9 @@ const defaultFlagSet: LDFlagSet = {
'bcregistry-ui-bus-search-coming-soon-chip': false,
'bcregistry-ui-ppr-new-chip': true,
'bcregistry-ui-rpt-new-chip': true,
'bcregistry-ui-wills-new-chip': true
'bcregistry-ui-wills-new-chip': true,
'banner-text': ' ',
'whats-new': ' '
}

/**
Expand Down

0 comments on commit 66afed3

Please sign in to comment.