Skip to content
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 auth-web/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 auth-web/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "auth-web",
"version": "2.7.0",
"version": "2.7.1",
"appName": "Auth Web",
"sbcName": "SBC Common Components",
"private": true,
Expand Down
7 changes: 6 additions & 1 deletion auth-web/src/components/auth/common/Product.vue
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
class="title font-weight-bold product-title mt-n1"
:data-test="productDetails.code"
>
{{ productDetails.description }}
{{ productDescription(productDetails.code, productDetails.description) }}
<v-tooltip
v-if="productPremTooltipText(productDetails.code)"
class="pa-2"
Expand Down Expand Up @@ -199,6 +199,7 @@ import AccountMixin from '@/components/auth/mixins/AccountMixin.vue'
import LaunchDarklyService from 'sbc-common-components/src/services/launchdarkly.services'
import ProductFee from '@/components/auth/common/ProductFeeViewEdit.vue'
import ProductTos from '@/components/auth/common/ProductTOS.vue'
import { productDisplay } from '@/resources/display-mappers'

const TOS_NEEDED_PRODUCT = ['VS']

Expand Down Expand Up @@ -379,6 +380,10 @@ export default class Product extends Mixins(AccountMixin) {
public productPremTooltipText (code: string) {
return LaunchDarklyService.getFlag(`product-${code}-prem-tooltip`)
}

public productDescription (code: string, description: string) {
return productDisplay[code] || description
}
}
</script>

Expand Down
4 changes: 2 additions & 2 deletions auth-web/tests/unit/components/Product.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,14 @@ describe('Product.vue', () => {

const productDetails = {
'code': 'VS',
'description': 'test',
'description': 'Vital Statistics',
'url': 'url',
'type': 'PARTNER',
'subscriptionStatus': ProductStatus.NOT_SUBSCRIBED
}
const pprProduct = {
'code': 'PPR',
'description': 'ppr',
'description': 'Personal Property Registry',
'url': 'url',
'type': 'PARTNER',
'subscriptionStatus': ProductStatus.NOT_SUBSCRIBED,
Expand Down
Loading