refs #917 Update partition-assistant component to pass clientData as input
parent
98bd49eab2
commit
f85e6e0d65
|
@ -57,7 +57,7 @@
|
|||
</div>
|
||||
|
||||
<div class="assistants-container" *ngIf="isPartitionAssistantVisible">
|
||||
<app-partition-assistant></app-partition-assistant>
|
||||
<app-partition-assistant [data]="clientData"></app-partition-assistant>
|
||||
</div>
|
||||
<div class="assistants-container" *ngIf="isBootImageVisible">
|
||||
<app-restore-image></app-restore-image>
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
import { Component } from '@angular/core';
|
||||
import { Component, Input } from '@angular/core';
|
||||
|
||||
interface Partition {
|
||||
size: number;
|
||||
|
@ -15,11 +15,15 @@ interface Partition {
|
|||
styleUrls: ['./partition-assistant.component.css']
|
||||
})
|
||||
export class PartitionAssistantComponent {
|
||||
@Input() data: any;
|
||||
diskNumber = 1;
|
||||
partitionTable = 'MSDOS';
|
||||
totalDiskSize = 100;
|
||||
errorMessage = '';
|
||||
|
||||
|
||||
ngOnInit() { console.log('Data:', this.data); }
|
||||
|
||||
partitions: Partition[] = [
|
||||
{ size: 17.96, type: 'NTFS', sizeBytes: 17.96 * 1024 * 1024 * 1024, format: false, color: '#00a2e8', percentage: 17.96 },
|
||||
{ size: 17.29, type: 'LINUX', sizeBytes: 17.29 * 1024 * 1024 * 1024, format: false, color: '#6a5acd', percentage: 17.29 },
|
||||
|
|
|
@ -16,36 +16,6 @@
|
|||
<input matInput [(ngModel)]="imagePayload.comments" name="comments">
|
||||
</mat-form-field>
|
||||
|
||||
<mat-form-field appearance="fill">
|
||||
<mat-label>Tipo</mat-label>
|
||||
<input matInput [(ngModel)]="imagePayload.type" name="type">
|
||||
</mat-form-field>
|
||||
|
||||
<mat-form-field appearance="fill">
|
||||
<mat-label>Ruta de la imagen</mat-label>
|
||||
<input matInput [(ngModel)]="imagePayload.path" name="path" required>
|
||||
</mat-form-field>
|
||||
|
||||
<mat-form-field appearance="fill">
|
||||
<mat-label>Revisión</mat-label>
|
||||
<input matInput [(ngModel)]="imagePayload.revision" name="revision">
|
||||
</mat-form-field>
|
||||
|
||||
<mat-form-field appearance="fill">
|
||||
<mat-label>Información</mat-label>
|
||||
<input matInput [(ngModel)]="imagePayload.info" name="info">
|
||||
</mat-form-field>
|
||||
|
||||
<mat-form-field appearance="fill">
|
||||
<mat-label>Tamaño (en MB)</mat-label>
|
||||
<input matInput type="number" [(ngModel)]="imagePayload.size" name="size">
|
||||
</mat-form-field>
|
||||
|
||||
<mat-form-field appearance="fill">
|
||||
<mat-label>Cliente</mat-label>
|
||||
<input matInput [(ngModel)]="imagePayload.client" name="client">
|
||||
</mat-form-field>
|
||||
|
||||
<mat-form-field appearance="fill">
|
||||
<mat-label>Perfil de software</mat-label>
|
||||
<input matInput [(ngModel)]="imagePayload.softwareProfile" name="softwareProfile">
|
||||
|
|
Loading…
Reference in New Issue