#57 added an error message for required fields

This commit is contained in:
Fabio Formosa
2022-11-03 23:58:17 +01:00
parent d164cb9363
commit 459aa136c1
2 changed files with 10 additions and 1 deletions

View File

@@ -16,6 +16,9 @@
[readonly]="!enabledTriggerForm || trigger"
matInput placeholder="name of the trigger (unique)"
formControlName="triggerName" name="triggerName">
<mat-error *ngIf="simpleTriggerReactiveForm.controls.triggerName.errors?.required">
Name is <strong>required</strong>
</mat-error>
</mat-form-field>
</div>
@@ -30,6 +33,9 @@
{{job}}
</mat-option>
</mat-select>
<mat-error *ngIf="simpleTriggerReactiveForm.controls.jobClass.errors?.required">
Job is <strong>required</strong>
</mat-error>
</mat-form-field>
</div>
@@ -55,6 +61,9 @@
COUNT
</mat-option>
</mat-select>
<mat-error *ngIf="simpleTriggerReactiveForm.controls.misfireInstruction.errors?.required">
The misfire instruction is <strong>required</strong>
</mat-error>
</mat-form-field>
<div class="small" [innerHTML]="getMisfireInstructionCaption()"></div>
</div>

View File

@@ -26,5 +26,5 @@ public class TriggerCommandDTO implements TriggerPeriodDTO {
private Date endDate;
@Builder.Default
private MisfireInstruction misfireInstruction = MisfireInstruction.MISFIRE_INSTRUCTION_RESCHEDULE_NEXT_WITH_REMAINING_COUNT;
private MisfireInstruction misfireInstruction = MisfireInstruction.MISFIRE_INSTRUCTION_RESCHEDULE_NOW_WITH_EXISTING_REPEAT_COUNT;
}