mirror of
https://github.com/GNS3/gns3-web-ui.git
synced 2025-05-12 21:43:26 +00:00
Release notes section added
This commit is contained in:
parent
eaf38d4374
commit
c1de0c9625
@ -18,7 +18,8 @@
|
|||||||
"polyfills": "src/polyfills.ts",
|
"polyfills": "src/polyfills.ts",
|
||||||
"assets": [
|
"assets": [
|
||||||
"src/assets",
|
"src/assets",
|
||||||
"src/favicon.ico"
|
"src/favicon.ico",
|
||||||
|
"src/ReleaseNotes.txt"
|
||||||
],
|
],
|
||||||
"styles": [
|
"styles": [
|
||||||
"node_modules/bootstrap/dist/css/bootstrap.min.css",
|
"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>
|
</mat-expansion-panel-header>
|
||||||
<div [innerHTML]="thirdpartylicenses"></div>
|
<div [innerHTML]="thirdpartylicenses"></div>
|
||||||
</mat-expansion-panel>
|
</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>
|
</mat-accordion>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
@ -8,6 +8,7 @@ styleUrls: ['./help.component.scss']
|
|||||||
})
|
})
|
||||||
export class HelpComponent implements OnInit {
|
export class HelpComponent implements OnInit {
|
||||||
thirdpartylicenses = '';
|
thirdpartylicenses = '';
|
||||||
|
releasenotes = '';
|
||||||
|
|
||||||
constructor(
|
constructor(
|
||||||
private httpClient: HttpClient
|
private httpClient: HttpClient
|
||||||
@ -23,5 +24,10 @@ export class HelpComponent implements OnInit {
|
|||||||
this.thirdpartylicenses = 'File not found';
|
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