refs #1091. DeployImage Multicast mode
parent
016e5a821a
commit
5bc5a9d23a
|
|
@ -1,4 +1,5 @@
|
||||||
<div class="header-container">
|
<div class="header-container">
|
||||||
|
<button mat-flat-button color="primary" (click)="back()">Volver</button>
|
||||||
<h2 class="title" i18n="@@subnetsTitle">Desplegar imagen en {{ clientName }}</h2>
|
<h2 class="title" i18n="@@subnetsTitle">Desplegar imagen en {{ clientName }}</h2>
|
||||||
<div class="subnets-button-row">
|
<div class="subnets-button-row">
|
||||||
<button mat-flat-button color="primary" (click)="save()">Guardar</button>
|
<button mat-flat-button color="primary" (click)="save()">Guardar</button>
|
||||||
|
|
|
||||||
|
|
@ -32,6 +32,7 @@ export class DeployImageComponent {
|
||||||
p2pMode: string = '';
|
p2pMode: string = '';
|
||||||
p2pTime: Number = 0;
|
p2pTime: Number = 0;
|
||||||
name: string = '';
|
name: string = '';
|
||||||
|
client: any = null;
|
||||||
|
|
||||||
protected p2pModeOptions = [
|
protected p2pModeOptions = [
|
||||||
{ name: 'Leecher', value: 'p2p-mode-leecher' },
|
{ name: 'Leecher', value: 'p2p-mode-leecher' },
|
||||||
|
|
@ -119,6 +120,7 @@ export class DeployImageComponent {
|
||||||
this.http.get(url).subscribe(
|
this.http.get(url).subscribe(
|
||||||
(response: any) => {
|
(response: any) => {
|
||||||
if (response.partitions) {
|
if (response.partitions) {
|
||||||
|
this.client = response;
|
||||||
this.clientName = response.name;
|
this.clientName = response.name;
|
||||||
this.dataSource.data = response.partitions.filter((partition: any) => {
|
this.dataSource.data = response.partitions.filter((partition: any) => {
|
||||||
return partition.partitionNumber !== 0;
|
return partition.partitionNumber !== 0;
|
||||||
|
|
@ -149,6 +151,10 @@ export class DeployImageComponent {
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
back() {
|
||||||
|
this.router.navigate(['clients', this.clientId], { state: { clientData: this.client} });
|
||||||
|
}
|
||||||
|
|
||||||
save(): void {
|
save(): void {
|
||||||
if (!this.selectedImage) {
|
if (!this.selectedImage) {
|
||||||
this.toastService.error('Debe seleccionar una imagen');
|
this.toastService.error('Debe seleccionar una imagen');
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue