Merge branch 'develop' of ssh://ognproject.evlt.uma.es:21987/opengnsys/oggui into develop

develop-jenkins
Manuel Aranda Rosales 2024-10-18 09:24:46 +02:00
commit 5e87810070
4 changed files with 18 additions and 5 deletions

View File

@ -62,9 +62,9 @@
</div>
<div class="assistants-container" *ngIf="isPartitionAssistantVisible">
<div class="assistants-container" *ngIf="isPartitionAssistantVisible" #assistantContainer>
<app-partition-assistant [data]="clientData" [clientUuid]="clientUuid"></app-partition-assistant>
</div>
<div class="assistants-container" *ngIf="isBootImageVisible">
<div class="assistants-container" *ngIf="isBootImageVisible" #assistantContainer>
<app-restore-image [data]="clientData"></app-restore-image>
</div>

View File

@ -1,4 +1,4 @@
import { Component, OnInit } from '@angular/core';
import { Component, ElementRef, OnInit, ViewChild } from '@angular/core';
import { HttpClient } from '@angular/common/http';
interface ClientInfo {
property: string;
@ -12,6 +12,7 @@ interface ClientInfo {
})
export class ClientMainViewComponent implements OnInit {
baseUrl: string = import.meta.env.NG_APP_BASE_API_URL;
@ViewChild('assistantContainer') assistantContainer!: ElementRef;
clientUuid: string;
clientData: any = {};
isPartitionAssistantVisible: boolean = false;
@ -106,11 +107,21 @@ export class ClientMainViewComponent implements OnInit {
togglePartitionAssistant() {
this.isPartitionAssistantVisible = !this.isPartitionAssistantVisible;
this.isBootImageVisible = false;
this.isBootImageVisible = false
if (this.isPartitionAssistantVisible) {
setTimeout(() => {
this.assistantContainer.nativeElement.scrollIntoView({ behavior: 'smooth' });
}, 0);
}
}
showBootImage() {
this.isPartitionAssistantVisible = false;
this.isBootImageVisible = !this.isBootImageVisible;
this.isPartitionAssistantVisible = false;
if (this.isBootImageVisible) {
setTimeout(() => {
this.assistantContainer.nativeElement.scrollIntoView({ behavior: 'smooth' });
}, 0);
}
}
}

View File

@ -1,4 +1,5 @@
<div class="partition-assistant" *ngFor="let disk of disks; let i = index">
<h2>Asistente a particionado</h2>
<div class="header">
<label for="disk-number-{{i}}">Disco {{ disk.diskNumber }}:</label>
<span class="disk-size">Tamaño: {{ disk.totalDiskSize }} GB</span>

View File

@ -1,3 +1,4 @@
<h2>Asistente de imagenes en disco</h2>
<div *ngFor="let disk of disks" class="partition-assistant">
<div class="header">
<label>Disco {{ disk.diskNumber }}</label>