From 6090df10353089791a6f71f9b8d0f03c37fdf81d Mon Sep 17 00:00:00 2001 From: Denis Strigo Date: Fri, 7 Feb 2020 10:28:24 +0300 Subject: [PATCH] fix(demo-docs): fix banners in backend bundles section (#5594) --- docs/app/@core/data/service/bundles.service.ts | 4 ++-- .../backend-bundles-section.component.html | 4 ++-- .../backend-bundles-section.component.ts | 2 +- docs/app/pages/home/backend-bundles-section/license.pipe.ts | 4 ++-- 4 files changed, 7 insertions(+), 7 deletions(-) diff --git a/docs/app/@core/data/service/bundles.service.ts b/docs/app/@core/data/service/bundles.service.ts index 49b9a415..accb8e1b 100644 --- a/docs/app/@core/data/service/bundles.service.ts +++ b/docs/app/@core/data/service/bundles.service.ts @@ -21,8 +21,8 @@ export interface ProductVariant { } export const BUNDLE_LICENSE = { - single: 'single', - multi: 'multi', + personal: 'personal', + developer: 'developer', }; export class Feature { diff --git a/docs/app/pages/home/backend-bundles-section/backend-bundles-section.component.html b/docs/app/pages/home/backend-bundles-section/backend-bundles-section.component.html index d7c2dbeb..d29f2691 100644 --- a/docs/app/pages/home/backend-bundles-section/backend-bundles-section.component.html +++ b/docs/app/pages/home/backend-bundles-section/backend-bundles-section.component.html @@ -62,8 +62,8 @@ - - + + diff --git a/docs/app/pages/home/backend-bundles-section/backend-bundles-section.component.ts b/docs/app/pages/home/backend-bundles-section/backend-bundles-section.component.ts index 6fd2c800..788538ee 100644 --- a/docs/app/pages/home/backend-bundles-section/backend-bundles-section.component.ts +++ b/docs/app/pages/home/backend-bundles-section/backend-bundles-section.component.ts @@ -29,7 +29,7 @@ export class BackendBundlesSectionComponent implements AfterViewInit { @Output() loaded = new EventEmitter(); - selectedLicenseType = BUNDLE_LICENSE.single; + selectedLicenseType = BUNDLE_LICENSE.personal; licenses = Object.values(BUNDLE_LICENSE); diff --git a/docs/app/pages/home/backend-bundles-section/license.pipe.ts b/docs/app/pages/home/backend-bundles-section/license.pipe.ts index 378ce425..6be7ea67 100644 --- a/docs/app/pages/home/backend-bundles-section/license.pipe.ts +++ b/docs/app/pages/home/backend-bundles-section/license.pipe.ts @@ -5,7 +5,7 @@ import { ProductVariant } from '../../../@core/data/service/bundles.service'; export class LicensePipe implements PipeTransform { transform(variants: ProductVariant[], license: string): ProductVariant { const result = variants - .filter(variant => variant.title.toLowerCase().includes(license.toLowerCase())); - return result.length ? result[0] : undefined; + .find(variant => variant.title.toLowerCase().includes(license.toLowerCase())); + return result ? result : variants[0]; } }
FEATURESSINGLE APPMULTI APPPERSONAL APPDEVELOPER APP
{{ feature.text }}