diff --git a/ogWebconsole/src/app/components/groups/components/client-main-view/deploy-image/deploy-image.component.html b/ogWebconsole/src/app/components/groups/components/client-main-view/deploy-image/deploy-image.component.html index 9abcb98..a68c21d 100644 --- a/ogWebconsole/src/app/components/groups/components/client-main-view/deploy-image/deploy-image.component.html +++ b/ogWebconsole/src/app/components/groups/components/client-main-view/deploy-image/deploy-image.component.html @@ -138,6 +138,6 @@ Semilla - + diff --git a/ogWebconsole/src/app/components/groups/components/client-main-view/deploy-image/deploy-image.component.ts b/ogWebconsole/src/app/components/groups/components/client-main-view/deploy-image/deploy-image.component.ts index 30be7b3..caaa02d 100644 --- a/ogWebconsole/src/app/components/groups/components/client-main-view/deploy-image/deploy-image.component.ts +++ b/ogWebconsole/src/app/components/groups/components/client-main-view/deploy-image/deploy-image.component.ts @@ -155,22 +155,24 @@ export class DeployImageComponent { if (!this.selectedImage) { this.toastService.error('Debe seleccionar una imagen'); + this.loading = false; return; } if (!this.selectedMethod) { this.toastService.error('Debe seleccionar un método'); + this.loading = false; return; } if (!this.selectedPartition) { this.toastService.error('Debe seleccionar una partición'); + this.loading = false; return; } this.toastService.info('Preparando petición de despliegue'); - const payload = { clients: this.clientData.map((client: any) => client['@id']), method: this.selectedMethod, diff --git a/ogWebconsole/src/app/components/ogboot/ogboot-status/ogboot-status.component.html b/ogWebconsole/src/app/components/ogboot/ogboot-status/ogboot-status.component.html index 536c858..a8a5ebe 100644 --- a/ogWebconsole/src/app/components/ogboot/ogboot-status/ogboot-status.component.html +++ b/ogWebconsole/src/app/components/ogboot/ogboot-status/ogboot-status.component.html @@ -1,3 +1,5 @@ + +

diff --git a/ogWebconsole/src/app/components/ogboot/ogboot-status/ogboot-status.component.ts b/ogWebconsole/src/app/components/ogboot/ogboot-status/ogboot-status.component.ts index 481a2eb..2b72056 100644 --- a/ogWebconsole/src/app/components/ogboot/ogboot-status/ogboot-status.component.ts +++ b/ogWebconsole/src/app/components/ogboot/ogboot-status/ogboot-status.component.ts @@ -13,6 +13,7 @@ export class OgbootStatusComponent implements OnInit { servicesStatus: any = {}; installedOglives: any[] = []; diskUsageChartData: any[] = []; + loading: boolean = false; view: [number, number] = [1100, 500]; @@ -31,6 +32,7 @@ export class OgbootStatusComponent implements OnInit { } loadStatus(): void { + this.loading = true; this.http.get(`${this.baseUrl}/og-boot/status`).subscribe(data => { this.diskUsage = data.message.disk_usage; this.servicesStatus = data.message.services_status; @@ -49,6 +51,7 @@ export class OgbootStatusComponent implements OnInit { }, error => { console.error('Error fetching status', error); }); + this.loading = false; } getServices(): { name: string, status: string }[] { @@ -82,5 +85,5 @@ export class OgbootStatusComponent implements OnInit { themeColor: '#3f51b5' }); } - + } diff --git a/ogWebconsole/src/app/components/ogdhcp/og-dhcp-subnets/status/status.component.html b/ogWebconsole/src/app/components/ogdhcp/og-dhcp-subnets/status/status.component.html index 19464a8..5efe3a6 100644 --- a/ogWebconsole/src/app/components/ogdhcp/og-dhcp-subnets/status/status.component.html +++ b/ogWebconsole/src/app/components/ogdhcp/og-dhcp-subnets/status/status.component.html @@ -1,3 +1,5 @@ + +
diff --git a/ogWebconsole/src/app/components/ogdhcp/og-dhcp-subnets/status/status.component.ts b/ogWebconsole/src/app/components/ogdhcp/og-dhcp-subnets/status/status.component.ts index eb743b4..a320e7e 100644 --- a/ogWebconsole/src/app/components/ogdhcp/og-dhcp-subnets/status/status.component.ts +++ b/ogWebconsole/src/app/components/ogdhcp/og-dhcp-subnets/status/status.component.ts @@ -13,6 +13,7 @@ export class StatusComponent { servicesStatus: any = {}; subnets: any[] = []; diskUsageChartData: any[] = []; + loading: boolean = false; view: [number, number] = [1100, 500]; @@ -24,13 +25,14 @@ export class StatusComponent { domain: ['#FF6384', '#3f51b5'] }; - constructor(private http: HttpClient, + constructor(private http: HttpClient, private joyrideService: JoyrideService) {} ngOnInit(): void { this.loadStatus(); } loadStatus(): void { + this.loading = true; this.http.get(`${this.baseUrl}/og-dhcp/status`).subscribe(data => { this.diskUsage = data.message.disk_usage; this.servicesStatus = data.message.services_status; @@ -49,6 +51,7 @@ export class StatusComponent { }, error => { console.error('Error fetching status', error); }); + this.loading = false; } getServices(): { name: string, status: string }[] { @@ -61,14 +64,14 @@ export class StatusComponent { iniciarTour(): void { this.joyrideService.startTour({ steps: [ - 'titleStep', - 'diskUsageStep', - 'servicesStatusStep', - 'subnetsStep' + 'titleStep', + 'diskUsageStep', + 'servicesStatusStep', + 'subnetsStep' ], showPrevButton: true, themeColor: '#3f51b5' }); } - + }