Merge pull request #709 from GNS3/Node-information-dialog-improvements

Node information dialog improvements
This commit is contained in:
piotrpekala7 2020-02-27 08:48:59 +01:00 committed by GitHub
commit e6c9df863c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 1 deletions

View File

@ -17,6 +17,7 @@ export class ShowNodeActionComponent {
showNode() { showNode() {
const dialogRef = this.dialog.open(InfoDialogComponent, { const dialogRef = this.dialog.open(InfoDialogComponent, {
width: '600px', width: '600px',
maxHeight: '600px',
autoFocus: false, autoFocus: false,
disableClose: true disableClose: true
}); });

View File

@ -67,7 +67,7 @@ export class InfoService {
node.node_type === "iou") { node.node_type === "iou") {
return 'Command line information is not supported for this type of node.'; return 'Command line information is not supported for this type of node.';
} else { } else {
if (node.status === 'started') { if (node.command_line) {
return node.command_line; return node.command_line;
} else { } else {
return 'Please start the node in order to get the command line information.'; return 'Please start the node in order to get the command line information.';