Skip to content
Snippets Groups Projects
Commit de55f0d1 authored by Xiao Gui's avatar Xiao Gui
Browse files

feat: add desc to rich region component

parent 9a0183d2
No related branches found
No related tags found
No related merge requests found
......@@ -108,6 +108,7 @@ If you do not accept the Terms & Conditions you are not permitted to access or u
CANNOT_DECIPHER_HEMISPHERE: 'Cannot decipher region hemisphere.',
DOES_NOT_SUPPORT_MULTI_REGION_SELECTION: `Please only select a single region.`,
MULTI_REGION_SELECTION: `Multi region selection`,
DESCRIPTION: 'Description',
REGIONAL_FEATURES: 'Regional features',
CONNECTIVITY: 'Connectivity',
NO_ADDIONTAL_INFO_AVAIL: `Currently, no additional information is linked to this region.`,
......
import { CommonModule } from "@angular/common";
import { NgModule } from "@angular/core";
import { MarkdownModule } from "src/components/markdown";
import { SpinnerModule } from "src/components/spinner";
import { AngularMaterialModule } from "src/sharedModules";
import { SapiViewsFeaturesModule } from "../../features";
......@@ -17,6 +18,7 @@ import { SapiViewsCoreRegionRegionRich } from "./region/rich/region.rich.compone
SapiViewsUtilModule,
SapiViewsFeaturesModule,
SpinnerModule,
MarkdownModule,
],
declarations: [
SapiViewsCoreRegionRegionListItem,
......
......@@ -76,10 +76,23 @@
</ng-template>
<ng-template #regionDesc>
<markdown-dom class="sxplr-muted" [markdown]="region?.versionInnovation || 'No description provided.'">
</markdown-dom>
</ng-template>
<mat-accordion class="d-block mt-2">
<ng-container *ngTemplateOutlet="ngMatAccordionTmpl; context: {
title: CONST.DESCRIPTION,
iconClass: 'fas fa-info',
content: regionDesc,
desc: '',
iconTooltip: 'Description',
iavNgIf: !!region?.versionInnovation
}">
<mat-accordion class="d-block mt-2">
</ng-container>
<ng-container *ngTemplateOutlet="ngMatAccordionTmpl; context: {
title: CONST.REGIONAL_FEATURES,
......@@ -91,10 +104,6 @@
}">
</ng-container>
</mat-accordion>
<mat-accordion class="d-block mt-2">
<!-- connectivity -->
<ng-template #sxplrSapiviewsFeaturesConnectivityBrowser>
<sxplr-sapiviews-features-connectivity-browser
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment