Skip to content

Commit 5994c09

Browse files
Mattia VianelliMattia Vianelli
authored andcommitted
DSC-2458 Updated privacy-content.component.ts and html
1 parent 6beddfc commit 5994c09

2 files changed

Lines changed: 10 additions & 14 deletions

File tree

src/app/info/privacy/privacy-content/privacy-content.component.html

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,12 @@
11
<h2 class="mb-3">{{ 'info.privacy.head' | translate }}</h2>
22

33

4-
<ng-container *ngIf="(privacyPolicyText$ | async) !== null">
5-
<ds-markdown-viewer
6-
*ngIf="(privacyPolicyText$ | async)?.length; else defaultContent"
7-
[value]="(privacyPolicyText$ | async)">
8-
</ds-markdown-viewer>
9-
10-
<ng-template #defaultContent>
4+
@if ((privacyPolicyText$ | async) !== null) {
5+
@if ((privacyPolicyText$ | async)?.length) {
6+
<ds-markdown-viewer
7+
[value]="(privacyPolicyText$ | async)">
8+
</ds-markdown-viewer>
9+
} @else {
1110
<div class="default-privacy-content">
1211
<h1>{{ 'info.privacy.head' | translate }}</h1>
1312
<p><em>Last updated May 4, 2023</em></p>
@@ -101,5 +100,5 @@ <h2>Disclosure of your information</h2>
101100
<h2>Changes to our privacy policy</h2>
102101
<p>It is our policy to post any changes we make to our privacy policy on this page. The date the privacy policy was last revised is identified at the top of the page. You are responsible for periodically visiting our Website and this privacy policy to check for any changes.</p>
103102
</div>
104-
</ng-template>
105-
</ng-container>
103+
}
104+
}

src/app/info/privacy/privacy-content/privacy-content.component.ts

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,4 @@
1-
import {
2-
AsyncPipe,
3-
NgIf,
4-
} from '@angular/common';
1+
import { AsyncPipe } from '@angular/common';
52
import {
63
Component,
74
OnDestroy,
@@ -29,7 +26,7 @@ import { MarkdownViewerComponent } from '../../../shared/markdown-viewer/markdow
2926
templateUrl: './privacy-content.component.html',
3027
styleUrls: ['./privacy-content.component.scss'],
3128
standalone: true,
32-
imports: [RouterLink, TranslateModule, AsyncPipe, MarkdownViewerComponent, NgIf],
29+
imports: [RouterLink, TranslateModule, AsyncPipe, MarkdownViewerComponent],
3330
})
3431
/**
3532
* Component displaying the contents of the Privacy Statement

0 commit comments

Comments
 (0)