+
diff --git a/ogWebconsole/src/app/components/groups/components/client-main-view/client-main-view.component.ts b/ogWebconsole/src/app/components/groups/components/client-main-view/client-main-view.component.ts
index a23828d..4f00d86 100644
--- a/ogWebconsole/src/app/components/groups/components/client-main-view/client-main-view.component.ts
+++ b/ogWebconsole/src/app/components/groups/components/client-main-view/client-main-view.component.ts
@@ -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);
+ }
}
}
diff --git a/ogWebconsole/src/app/components/groups/components/client-main-view/partition-assistant/partition-assistant.component.html b/ogWebconsole/src/app/components/groups/components/client-main-view/partition-assistant/partition-assistant.component.html
index b38b624..96bec8a 100644
--- a/ogWebconsole/src/app/components/groups/components/client-main-view/partition-assistant/partition-assistant.component.html
+++ b/ogWebconsole/src/app/components/groups/components/client-main-view/partition-assistant/partition-assistant.component.html
@@ -1,4 +1,5 @@
+
Asistente a particionado