Add missing error messages
Adds missing validation error messages to various config components for more helpful feedback to user. Change-Id: I68da65193971cf66488bda4efc855ce31e40707f
This commit is contained in:
parent
d0ccf65d33
commit
11fc56be31
@ -9,20 +9,32 @@
|
|||||||
<mat-form-field appearance="fill">
|
<mat-form-field appearance="fill">
|
||||||
<mat-label>EncryptionKeyPath</mat-label>
|
<mat-label>EncryptionKeyPath</mat-label>
|
||||||
<input matInput formControlName="encryptionKeyPath">
|
<input matInput formControlName="encryptionKeyPath">
|
||||||
|
<mat-error *ngIf="group.controls.encryptionKeyPath.hasError('required')">
|
||||||
|
EncryptionKeyPath path is required
|
||||||
|
</mat-error>
|
||||||
</mat-form-field>
|
</mat-form-field>
|
||||||
<mat-form-field appearance="fill">
|
<mat-form-field appearance="fill">
|
||||||
<mat-label>DecryptionKeyPath</mat-label>
|
<mat-label>DecryptionKeyPath</mat-label>
|
||||||
<input matInput formControlName="decryptionKeyPath">
|
<input matInput formControlName="decryptionKeyPath">
|
||||||
|
<mat-error *ngIf="group.controls.decryptionKeyPath.hasError('required')">
|
||||||
|
DecryptionKeyPath is required
|
||||||
|
</mat-error>
|
||||||
</mat-form-field>
|
</mat-form-field>
|
||||||
</div>
|
</div>
|
||||||
<div *ngIf="config.hasOwnProperty('keySecretName')">
|
<div *ngIf="config.hasOwnProperty('keySecretName')">
|
||||||
<mat-form-field appearance="fill">
|
<mat-form-field appearance="fill">
|
||||||
<mat-label>KeySecretName</mat-label>
|
<mat-label>KeySecretName</mat-label>
|
||||||
<input matInput formControlName="keySecretName">
|
<input matInput formControlName="keySecretName">
|
||||||
|
<mat-error *ngIf="group.controls.keySecretName.hasError('required')">
|
||||||
|
KeySecretName is required
|
||||||
|
</mat-error>
|
||||||
</mat-form-field>
|
</mat-form-field>
|
||||||
<mat-form-field appearance="fill">
|
<mat-form-field appearance="fill">
|
||||||
<mat-label>KeySecretNamespace</mat-label>
|
<mat-label>KeySecretNamespace</mat-label>
|
||||||
<input matInput formControlName="keySecretNamespace">
|
<input matInput formControlName="keySecretNamespace">
|
||||||
|
<mat-error *ngIf="group.controls.keySecretNamespace.hasError('required')">
|
||||||
|
KeySecretNamespace is required
|
||||||
|
</mat-error>
|
||||||
</mat-form-field>
|
</mat-form-field>
|
||||||
</div>
|
</div>
|
||||||
</form>
|
</form>
|
||||||
|
@ -11,10 +11,16 @@
|
|||||||
<mat-form-field appearance="fill">
|
<mat-form-field appearance="fill">
|
||||||
<mat-label>System Action Retries</mat-label>
|
<mat-label>System Action Retries</mat-label>
|
||||||
<input matInput formControlName="systemActionRetries" placeholder="Value in seconds, e.g. 30">
|
<input matInput formControlName="systemActionRetries" placeholder="Value in seconds, e.g. 30">
|
||||||
|
<mat-error *ngIf="group.controls.systemActionRetries.hasError('pattern')">
|
||||||
|
Value must be a number
|
||||||
|
</mat-error>
|
||||||
</mat-form-field><br />
|
</mat-form-field><br />
|
||||||
<mat-form-field appearance="fill">
|
<mat-form-field appearance="fill">
|
||||||
<mat-label>System Reboot Delay</mat-label>
|
<mat-label>System Reboot Delay</mat-label>
|
||||||
<input matInput formControlName="systemRebootDelay" placeholder="Value in seconds, e.g. 30">
|
<input matInput formControlName="systemRebootDelay" placeholder="Value in seconds, e.g. 30">
|
||||||
|
<mat-error *ngIf="group.controls.systemRebootDelay.hasError('pattern')">
|
||||||
|
Value must be a number
|
||||||
|
</mat-error>
|
||||||
</mat-form-field><br />
|
</mat-form-field><br />
|
||||||
<mat-form-field appearance="fill">
|
<mat-form-field appearance="fill">
|
||||||
<mat-label>Type</mat-label>
|
<mat-label>Type</mat-label>
|
||||||
|
@ -8,10 +8,16 @@
|
|||||||
<mat-form-field appearance="fill">
|
<mat-form-field appearance="fill">
|
||||||
<mat-label>Target Path</mat-label>
|
<mat-label>Target Path</mat-label>
|
||||||
<input matInput formControlName="targetPath">
|
<input matInput formControlName="targetPath">
|
||||||
|
<mat-error *ngIf="group.controls.targetPath.hasError('required')">
|
||||||
|
Target Path is required
|
||||||
|
</mat-error>
|
||||||
</mat-form-field>
|
</mat-form-field>
|
||||||
<mat-form-field appearance="fill">
|
<mat-form-field appearance="fill">
|
||||||
<mat-label>Metadata Path</mat-label>
|
<mat-label>Metadata Path</mat-label>
|
||||||
<input matInput formControlName="metadataPath">
|
<input matInput formControlName="metadataPath">
|
||||||
|
<mat-error *ngIf="group.controls.metadataPath.hasError('required')">
|
||||||
|
Metadata Path is required
|
||||||
|
</mat-error>
|
||||||
</mat-form-field>
|
</mat-form-field>
|
||||||
<h5>Repositories</h5>
|
<h5>Repositories</h5>
|
||||||
<mat-form-field appearance="fill">
|
<mat-form-field appearance="fill">
|
||||||
@ -24,10 +30,16 @@
|
|||||||
<mat-form-field appearance="fill">
|
<mat-form-field appearance="fill">
|
||||||
<mat-label>URL</mat-label>
|
<mat-label>URL</mat-label>
|
||||||
<input matInput formControlName="url">
|
<input matInput formControlName="url">
|
||||||
|
<mat-error *ngIf="repo.controls.url.hasError('required')">
|
||||||
|
URL is required
|
||||||
|
</mat-error>
|
||||||
</mat-form-field>
|
</mat-form-field>
|
||||||
<mat-form-field appearance="fill">
|
<mat-form-field appearance="fill">
|
||||||
<mat-label>{{repo.controls.checkoutLabel.value}}</mat-label>
|
<mat-label>{{repo.controls.checkoutLabel.value}}</mat-label>
|
||||||
<input matInput formControlName="checkoutReference">
|
<input matInput formControlName="checkoutReference">
|
||||||
|
<mat-error *ngIf="repo.controls.checkoutReference.hasError('required')">
|
||||||
|
{{repo.controls.checkoutLabel.value}} is required
|
||||||
|
</mat-error>
|
||||||
</mat-form-field>
|
</mat-form-field>
|
||||||
<p>
|
<p>
|
||||||
<mat-checkbox formControlName="force" labelPosition="after">Force</mat-checkbox>
|
<mat-checkbox formControlName="force" labelPosition="after">Force</mat-checkbox>
|
||||||
|
@ -3,10 +3,16 @@
|
|||||||
<mat-form-field appearance="fill">
|
<mat-form-field appearance="fill">
|
||||||
<mat-label>Repository Name</mat-label>
|
<mat-label>Repository Name</mat-label>
|
||||||
<input matInput formControlName="repoName">
|
<input matInput formControlName="repoName">
|
||||||
|
<mat-error *ngIf="group.controls.repoName.hasError('required')">
|
||||||
|
Repository Name is required
|
||||||
|
</mat-error>
|
||||||
</mat-form-field>
|
</mat-form-field>
|
||||||
<mat-form-field appearance="fill">
|
<mat-form-field appearance="fill">
|
||||||
<mat-label>URL</mat-label>
|
<mat-label>URL</mat-label>
|
||||||
<input matInput formControlName="url">
|
<input matInput formControlName="url">
|
||||||
|
<mat-error *ngIf="group.controls.url.hasError('required')">
|
||||||
|
URL is required
|
||||||
|
</mat-error>
|
||||||
</mat-form-field>
|
</mat-form-field>
|
||||||
<mat-label>
|
<mat-label>
|
||||||
<mat-select [(value)]="checkoutType">
|
<mat-select [(value)]="checkoutType">
|
||||||
@ -15,6 +21,9 @@
|
|||||||
</mat-label>
|
</mat-label>
|
||||||
<mat-form-field appearance="fill">
|
<mat-form-field appearance="fill">
|
||||||
<input matInput formControlName="checkoutReference">
|
<input matInput formControlName="checkoutReference">
|
||||||
|
<mat-error *ngIf="group.controls.checkoutReference.hasError('required')">
|
||||||
|
{{checkoutType}} is required
|
||||||
|
</mat-error>
|
||||||
</mat-form-field>
|
</mat-form-field>
|
||||||
<p>
|
<p>
|
||||||
<mat-checkbox formControlName="force" labelPosition="after">Force</mat-checkbox>
|
<mat-checkbox formControlName="force" labelPosition="after">Force</mat-checkbox>
|
||||||
|
Loading…
Reference in New Issue
Block a user