Usage instructions added

This commit is contained in:
Piotr Pekala
2019-10-23 05:39:03 -07:00
parent 6d81bd4a0b
commit 97aa9d7413
6 changed files with 11 additions and 0 deletions

View File

@ -9,6 +9,11 @@
</div>
</div>
</mat-tab>
<mat-tab label="Usage instructions">
<div class="textBox">
{{usage}}
</div>
</mat-tab>
<mat-tab label="Command line">
<div class="textBox">
{{commandLine}}

View File

@ -13,6 +13,7 @@ export class InfoDialogComponent implements OnInit {
@Input() server: Server;
@Input() node: Node;
infoList: string[] = [];
usage: string = '';
commandLine: string = '';
constructor(
@ -23,6 +24,7 @@ export class InfoDialogComponent implements OnInit {
ngOnInit() {
this.infoList = this.infoService.getInfoAboutNode(this.node, this.server);
this.commandLine = this.infoService.getCommandLine(this.node);
this.usage = this.node.usage ? this.node.usage : `No usage information has been provided for this node.`;
}
onCloseClick() {