Skip to content

Commit 1cc31c6

Browse files
Load the szn license in oninit method (#757)
1 parent e4dcb89 commit 1cc31c6

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

src/app/bitstream-page/clarin-license-agreement-page/clarin-license-agreement-page.component.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ <h2 id="header" class="border-bottom pb-2">{{'clarin.license.agreement.title' |
1414
<div class="card bg-clarin-yellow border-clarin-yellow">
1515
<div class="card-body text-center">
1616
<a [href]="clarinLicense?.definition">{{clarinLicense?.name}}</a>
17-
<div *ngIf="clarinLicense?.name === LICENSE_NAME_SEZNAM && loadLicenseContentSeznam()"
17+
<div *ngIf="clarinLicense?.name === LICENSE_NAME_SEZNAM"
1818
class="pt-3"
1919
[innerHTML]="(licenseContentSeznam | async) | dsSafeHtml">
2020
</div>

src/app/bitstream-page/clarin-license-agreement-page/clarin-license-agreement-page.component.ts

+3
Original file line numberDiff line numberDiff line change
@@ -160,6 +160,9 @@ export class ClarinLicenseAgreementPageComponent implements OnInit {
160160
// The user is signed in and has record in the userRegistration
161161
// Load userRegistration and userMetadata from userRegistration repository
162162
this.loadUserRegistrationAndUserMetadata();
163+
164+
// Load the Seznam dataset license content
165+
this.loadLicenseContentSeznam();
163166
}
164167

165168
/**

0 commit comments

Comments
 (0)