Skip to content

Commit

Permalink
fixes #15, make error fit on one line
Browse files Browse the repository at this point in the history
  • Loading branch information
Vince-F committed May 8, 2019
1 parent afd4e3a commit c1de5c7
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ <h1 mat-dialog-title>Create time log</h1>
<mat-error *ngIf="durationFromControl.hasError('required')">
You need a duration to log time.
</mat-error>
<mat-error *ngIf="durationFromControl.hasError('invalidFormat')">
Format is incorrect. Expected format is something like "1h25m" or "30m"
<mat-error *ngIf="durationFromControl.hasError('invalidFormat') && !durationFromControl.hasError('required')">
Incorrect format. Expected "XXhXXm", "XXh" or "XXm".
</mat-error>
</mat-form-field>
</form>
Expand Down

0 comments on commit c1de5c7

Please sign in to comment.