refs #1671. Udpated deploy method type. Added udpcast-direct'
testing/ogGui-multibranch/pipeline/head There was a failure building this commit
Details
testing/ogGui-multibranch/pipeline/head There was a failure building this commit
Details
parent
a5617ad012
commit
44199881cc
|
@ -43,8 +43,8 @@ table {
|
||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
}
|
}
|
||||||
|
|
||||||
.full-width {
|
.custom-width {
|
||||||
width: 100%;
|
width: 50%;
|
||||||
margin-bottom: 16px;
|
margin-bottom: 16px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -62,7 +62,8 @@ table {
|
||||||
display: flex;
|
display: flex;
|
||||||
justify-content: space-between;
|
justify-content: space-between;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
padding: 10px;
|
padding: 10px 10px;
|
||||||
|
border-bottom: 1px solid #ddd;
|
||||||
}
|
}
|
||||||
|
|
||||||
.mat-elevation-z8 {
|
.mat-elevation-z8 {
|
||||||
|
@ -74,3 +75,15 @@ table {
|
||||||
justify-content: end;
|
justify-content: end;
|
||||||
margin-bottom: 30px;
|
margin-bottom: 30px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.header-container-title {
|
||||||
|
flex-grow: 1;
|
||||||
|
text-align: left;
|
||||||
|
padding-left: 1em;
|
||||||
|
}
|
||||||
|
|
||||||
|
.button-row {
|
||||||
|
display: flex;
|
||||||
|
padding-right: 1em;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
|
@ -6,14 +6,14 @@
|
||||||
Crear imagen desde {{ clientName }}
|
Crear imagen desde {{ clientName }}
|
||||||
</h2>
|
</h2>
|
||||||
</div>
|
</div>
|
||||||
<div class="subnets-button-row">
|
<div class="button-row">
|
||||||
<button class="action-button" (click)="save()">Ejecutar</button>
|
<button class="action-button" (click)="save()">Ejecutar</button>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<mat-divider></mat-divider>
|
<mat-divider></mat-divider>
|
||||||
|
|
||||||
<div class="select-container">
|
<div class="select-container">
|
||||||
<mat-form-field appearance="fill" class="full-width">
|
<mat-form-field appearance="fill" class="custom-width">
|
||||||
<mat-label>Nombre canónico</mat-label>
|
<mat-label>Nombre canónico</mat-label>
|
||||||
<input matInput [(ngModel)]="name" placeholder="Nombre canónico. En minúscula y sin espacios" required>
|
<input matInput [(ngModel)]="name" placeholder="Nombre canónico. En minúscula y sin espacios" required>
|
||||||
</mat-form-field>
|
</mat-form-field>
|
||||||
|
|
|
@ -75,6 +75,8 @@ table {
|
||||||
display: flex;
|
display: flex;
|
||||||
justify-content: space-between;
|
justify-content: space-between;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
|
padding: 10px 10px;
|
||||||
|
border-bottom: 1px solid #ddd;
|
||||||
}
|
}
|
||||||
|
|
||||||
.mat-elevation-z8 {
|
.mat-elevation-z8 {
|
||||||
|
@ -130,3 +132,8 @@ table {
|
||||||
text-align: left;
|
text-align: left;
|
||||||
padding-left: 1em;
|
padding-left: 1em;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.button-row {
|
||||||
|
display: flex;
|
||||||
|
padding-right: 1em;
|
||||||
|
}
|
||||||
|
|
|
@ -6,7 +6,7 @@
|
||||||
{{ 'deployImage' | translate }}
|
{{ 'deployImage' | translate }}
|
||||||
</h2>
|
</h2>
|
||||||
</div>
|
</div>
|
||||||
<div class="subnets-button-row">
|
<div class="button-row">
|
||||||
<button class="action-button" (click)="save()">Ejecutar</button>
|
<button class="action-button" (click)="save()">Ejecutar</button>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
@ -41,13 +41,6 @@
|
||||||
<mat-divider style="margin-top: 20px;"></mat-divider>
|
<mat-divider style="margin-top: 20px;"></mat-divider>
|
||||||
|
|
||||||
<div class="select-container">
|
<div class="select-container">
|
||||||
<div class="option-container">
|
|
||||||
<mat-radio-group [(ngModel)]="selectedOption" name="selectedOption" aria-label="Selecciona una opcion">
|
|
||||||
<mat-radio-button value="update-cache">Actualizar cache</mat-radio-button>
|
|
||||||
<mat-radio-button value="deploy-image">Desplegar imagen</mat-radio-button>
|
|
||||||
</mat-radio-group>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="deploy-container">
|
<div class="deploy-container">
|
||||||
<mat-form-field appearance="fill" class="full-width">
|
<mat-form-field appearance="fill" class="full-width">
|
||||||
<mat-label>Seleccione imagen</mat-label>
|
<mat-label>Seleccione imagen</mat-label>
|
||||||
|
@ -60,7 +53,7 @@
|
||||||
<mat-form-field appearance="fill" class="full-width">
|
<mat-form-field appearance="fill" class="full-width">
|
||||||
<mat-label>Seleccione método de deploy</mat-label>
|
<mat-label>Seleccione método de deploy</mat-label>
|
||||||
<mat-select [(ngModel)]="selectedMethod" name="selectedMethod">
|
<mat-select [(ngModel)]="selectedMethod" name="selectedMethod">
|
||||||
<mat-option *ngFor="let method of deployMethods" [value]="method">{{ method }}</mat-option>
|
<mat-option *ngFor="let method of allMethods" [value]="method">{{ method }}</mat-option>
|
||||||
</mat-select>
|
</mat-select>
|
||||||
</mat-form-field>
|
</mat-form-field>
|
||||||
</div>
|
</div>
|
||||||
|
@ -90,9 +83,9 @@
|
||||||
|
|
||||||
<mat-divider></mat-divider>
|
<mat-divider></mat-divider>
|
||||||
<div class="options-container">
|
<div class="options-container">
|
||||||
<h3 *ngIf="isMethod('udpcast') || isMethod('uftp')" class="input-group">Opciones multicast</h3>
|
<h3 *ngIf="isMethod('udpcast') || isMethod('uftp') || isMethod('udpcast-direct')" class="input-group">Opciones multicast</h3>
|
||||||
<h3 *ngIf="isMethod('p2p')" class="input-group">Opciones torrent</h3>
|
<h3 *ngIf="isMethod('p2p')" class="input-group">Opciones torrent</h3>
|
||||||
<div *ngIf="isMethod('udpcast') || isMethod('uftp')" class="input-group">
|
<div *ngIf="isMethod('udpcast') || isMethod('uftp') || isMethod('udpcast-direct')" class="input-group">
|
||||||
<mat-form-field appearance="fill" class="input-field">
|
<mat-form-field appearance="fill" class="input-field">
|
||||||
<mat-label>Puerto</mat-label>
|
<mat-label>Puerto</mat-label>
|
||||||
<input matInput [(ngModel)]="mcastPort" name="mcastPort" type="number">
|
<input matInput [(ngModel)]="mcastPort" name="mcastPort" type="number">
|
||||||
|
|
|
@ -21,7 +21,6 @@ export class DeployImageComponent {
|
||||||
images: any[] = [];
|
images: any[] = [];
|
||||||
clientName: string = '';
|
clientName: string = '';
|
||||||
selectedImage: any = null;
|
selectedImage: any = null;
|
||||||
selectedOption: string | null = 'deploy-image';
|
|
||||||
selectedMethod: string | null = null;
|
selectedMethod: string | null = null;
|
||||||
selectedPartition: any = null;
|
selectedPartition: any = null;
|
||||||
mcastIp: string = '';
|
mcastIp: string = '';
|
||||||
|
@ -50,18 +49,12 @@ export class DeployImageComponent {
|
||||||
allMethods = [
|
allMethods = [
|
||||||
'uftp',
|
'uftp',
|
||||||
'udpcast',
|
'udpcast',
|
||||||
|
'udpcast-direct',
|
||||||
'unicast',
|
'unicast',
|
||||||
'unicast-direct',
|
'unicast-direct',
|
||||||
'p2p'
|
'p2p'
|
||||||
];
|
];
|
||||||
|
|
||||||
updateCacheMethods = [
|
|
||||||
'uftp',
|
|
||||||
'udpcast',
|
|
||||||
'unicast',
|
|
||||||
'p2p'
|
|
||||||
];
|
|
||||||
|
|
||||||
dataSource = new MatTableDataSource<any>();
|
dataSource = new MatTableDataSource<any>();
|
||||||
columns = [
|
columns = [
|
||||||
{
|
{
|
||||||
|
@ -108,10 +101,6 @@ export class DeployImageComponent {
|
||||||
this.loadPartitions()
|
this.loadPartitions()
|
||||||
}
|
}
|
||||||
|
|
||||||
get deployMethods() {
|
|
||||||
return this.selectedOption === 'update-cache' ? this.updateCacheMethods : this.allMethods;
|
|
||||||
}
|
|
||||||
|
|
||||||
isMethod(method: string): boolean {
|
isMethod(method: string): boolean {
|
||||||
return this.selectedMethod === method;
|
return this.selectedMethod === method;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue