mirror of
https://github.com/GNS3/gns3-web-ui.git
synced 2025-06-18 06:48:09 +00:00
Release notes section added
This commit is contained in:
1
src/ReleaseNotes.txt
Normal file
1
src/ReleaseNotes.txt
Normal file
@ -0,0 +1 @@
|
||||
Current version: 2019.2.0
|
@ -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>
|
||||
|
@ -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 />")
|
||||
});
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user