parent
0a077af936
commit
a594348a30
21 changed files with 119 additions and 40 deletions
@ -0,0 +1,12 @@ |
||||
<mat-dialog-content> |
||||
<div> |
||||
<p>Alias: {{data.alias}}</p> |
||||
<p>Username: {{data.username}}</p> |
||||
<p>Hostname: {{data.hostname}}</p> |
||||
<p>Platform: {{data.platform}}</p> |
||||
</div> |
||||
</mat-dialog-content> |
||||
<mat-dialog-actions align="end"> |
||||
<button mat-button cdkFocusInitial>Edit</button> |
||||
<button mat-button mat-dialog-close>Cancel</button> |
||||
</mat-dialog-actions> |
@ -0,0 +1,11 @@ |
||||
import { Component, Inject } from '@angular/core'; |
||||
import { MAT_DIALOG_DATA } from '@angular/material/dialog'; |
||||
import { AgentModel } from '../../models/agent.model'; |
||||
|
||||
@Component({ |
||||
selector: 'agent-info-dialog', |
||||
templateUrl: 'agent-info-dialog.html', |
||||
}) |
||||
export class AgentInfoDialogComponent { |
||||
constructor(@Inject(MAT_DIALOG_DATA) public data: AgentModel) { } |
||||
}
|
@ -0,0 +1 @@ |
||||
export * from './agent_info.component'; |
@ -0,0 +1,3 @@ |
||||
export function epochToStr(epoch: number): string { |
||||
return new Date(epoch * 1000).toLocaleString('en-GB') |
||||
} |
Loading…
Reference in new issue