Release notes section added

This commit is contained in:
Piotr Pekala
2019-06-28 00:46:44 -07:00
parent eaf38d4374
commit c1de0c9625
4 changed files with 15 additions and 1 deletions

1
src/ReleaseNotes.txt Normal file
View File

@ -0,0 +1 @@
Current version: 2019.2.0

View File

@ -9,6 +9,12 @@
</mat-expansion-panel-header>
<div [innerHTML]="thirdpartylicenses"></div>
</mat-expansion-panel>
<mat-expansion-panel>
<mat-expansion-panel-header>
<mat-panel-title> Release notes </mat-panel-title>
</mat-expansion-panel-header>
<div [innerHTML]="releasenotes"></div>
</mat-expansion-panel>
</mat-accordion>
</div>
</div>

View File

@ -8,6 +8,7 @@ styleUrls: ['./help.component.scss']
})
export class HelpComponent implements OnInit {
thirdpartylicenses = '';
releasenotes = '';
constructor(
private httpClient: HttpClient
@ -23,5 +24,10 @@ export class HelpComponent implements OnInit {
this.thirdpartylicenses = 'File not found';
}
});
this.httpClient.get('ReleaseNotes.txt', {responseType: 'text'})
.subscribe(data => {
this.releasenotes = data.replace(new RegExp('\n', 'g'), "<br />")
});
}
}