refs #690. ogBoot status changes. Added ogLive in client

develop-jenkins
Manuel Aranda Rosales 2024-10-18 09:24:41 +02:00
parent fdd37f64d9
commit 35748d9f11
3 changed files with 8 additions and 8 deletions

View File

@ -65,10 +65,10 @@ export class ClientTabViewComponent {
cell: (client: any) => `${client.organizationalUnit.name}` cell: (client: any) => `${client.organizationalUnit.name}`
}, },
{ {
columnDef: 'createdAt', columnDef: 'ogLive',
header: 'Fecha de creación', header: 'OgLive',
cell: (client: any) => `${this.datePipe.transform(client.createdAt, 'dd/MM/yyyy hh:mm:ss')}` cell: (client: any) => `${client.ogLive?.name}`
} },
]; ];
displayedColumns = [...this.columns.map(column => column.columnDef), 'actions']; displayedColumns = [...this.columns.map(column => column.columnDef), 'actions'];

View File

@ -21,7 +21,7 @@
<mat-label i18n="@@oglive-label">OgLive</mat-label> <mat-label i18n="@@oglive-label">OgLive</mat-label>
<mat-select formControlName="ogLive"> <mat-select formControlName="ogLive">
<mat-option *ngFor="let ogLive of ogLives" [value]="ogLive['@id']"> <mat-option *ngFor="let ogLive of ogLives" [value]="ogLive['@id']">
{{ ogLive.uuid }} {{ ogLive.name }}
</mat-option> </mat-option>
</mat-select> </mat-select>
</mat-form-field> </mat-form-field>

View File

@ -32,9 +32,9 @@ export class OgbootStatusComponent implements OnInit {
loadStatus(): void { loadStatus(): void {
this.http.get<any>(`${this.baseUrl}/og-boot/status`).subscribe(data => { this.http.get<any>(`${this.baseUrl}/og-boot/status`).subscribe(data => {
this.diskUsage = data.disk_usage; this.diskUsage = data.message.disk_usage;
this.servicesStatus = data.services_status; this.servicesStatus = data.message.services_status;
this.installedOglives = data.installed_oglives; this.installedOglives = data.message.installed_oglives;
this.diskUsageChartData = [ this.diskUsageChartData = [
{ {