mirror of
https://github.com/GNS3/gns3-web-ui.git
synced 2025-02-21 10:01:44 +00:00
Release notes section added
This commit is contained in:
parent
eaf38d4374
commit
c1de0c9625
@ -18,7 +18,8 @@
|
||||
"polyfills": "src/polyfills.ts",
|
||||
"assets": [
|
||||
"src/assets",
|
||||
"src/favicon.ico"
|
||||
"src/favicon.ico",
|
||||
"src/ReleaseNotes.txt"
|
||||
],
|
||||
"styles": [
|
||||
"node_modules/bootstrap/dist/css/bootstrap.min.css",
|
||||
|
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 />")
|
||||
});
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user