mirror of
https://github.com/GNS3/gns3-web-ui.git
synced 2025-05-09 12:02:53 +00:00
Info dialog updated
This commit is contained in:
parent
c415011f34
commit
67754192ea
@ -1,8 +1,22 @@
|
|||||||
<div class="title-container">
|
<div class="title-container">
|
||||||
<h1 mat-dialog-title>appliance name</h1>
|
<h1 mat-dialog-title>{{appliance.name}}</h1>
|
||||||
</div>
|
</div>
|
||||||
<div mat-dialog-content>
|
<div mat-dialog-content>
|
||||||
{{data.info}}
|
<div>
|
||||||
|
Vendor: {{appliance.vendor_name}}
|
||||||
|
</div>
|
||||||
|
<div>
|
||||||
|
Status: {{appliance.status}}
|
||||||
|
</div>
|
||||||
|
<div>
|
||||||
|
Maintainer: {{appliance.maintainer}}
|
||||||
|
</div>
|
||||||
|
<div *ngIf="appliance.qemu">
|
||||||
|
Adapters: {{appliance.qemu.adapters}}
|
||||||
|
</div>
|
||||||
|
<div *ngIf="appliance.qemu">
|
||||||
|
Console type: {{appliance.qemu.console_type}}
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div mat-dialog-actions>
|
<div mat-dialog-actions>
|
||||||
<button mat-button (click)="onNoClick()" tabindex="-1" color="accent">Close</button>
|
<button mat-button (click)="onNoClick()" tabindex="-1" color="accent">Close</button>
|
||||||
|
@ -1,11 +1,13 @@
|
|||||||
import { Component, Inject } from '@angular/core';
|
import { Component, Inject } from '@angular/core';
|
||||||
import { MatDialogRef, MAT_DIALOG_DATA } from '@angular/material';
|
import { MatDialogRef, MAT_DIALOG_DATA } from '@angular/material';
|
||||||
|
import { Appliance } from '../../../../models/appliance';
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
selector: 'appliance-info-dialog',
|
selector: 'appliance-info-dialog',
|
||||||
templateUrl: 'appliance-info-dialog.component.html',
|
templateUrl: 'appliance-info-dialog.component.html',
|
||||||
})
|
})
|
||||||
export class ApplianceInfoDialogComponent {
|
export class ApplianceInfoDialogComponent {
|
||||||
|
public appliance: Appliance;
|
||||||
|
|
||||||
constructor(
|
constructor(
|
||||||
public dialogRef: MatDialogRef<ApplianceInfoDialogComponent>,
|
public dialogRef: MatDialogRef<ApplianceInfoDialogComponent>,
|
||||||
|
@ -155,12 +155,11 @@ export class NewTemplateDialogComponent implements OnInit {
|
|||||||
}
|
}
|
||||||
|
|
||||||
showInfo(object: any) {
|
showInfo(object: any) {
|
||||||
console.log(object);
|
let dialogRef = this.dialog.open(ApplianceInfoDialogComponent, {
|
||||||
|
|
||||||
this.dialog.open(ApplianceInfoDialogComponent, {
|
|
||||||
width: '250px',
|
width: '250px',
|
||||||
data: {info: 'info'}
|
data: {appliance: object}
|
||||||
});
|
});
|
||||||
|
dialogRef.componentInstance.appliance = object;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user