Skip to content

Commit

Permalink
fix: move text content from caption to checkbox (#703)
Browse files Browse the repository at this point in the history
* fix: move text content from caption to checkbox

* fix: update prettier formatting

* fix: add localization

* fix: prettier formatting

* fix: make text bold
  • Loading branch information
Kern1124 authored Jul 9, 2024
1 parent aa4bf30 commit 064f89f
Showing 1 changed file with 16 additions and 14 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -94,20 +94,22 @@
</nui-form-field>
</div>

<nui-form-field
caption="Warning and critical when below threshold values"
i18n-caption
[control]="form.get('reversedThresholds')"
[showOptionalText]="false"
>
<nui-checkbox
formControlName="reversedThresholds"
required
></nui-checkbox>
<nui-validation-message for="required" i18n>
This field is required
</nui-validation-message>
</nui-form-field>
<div class="mb-4">
<nui-form-field
[control]="form.get('reversedThresholds')"
[showOptionalText]="false"
>
<nui-checkbox formControlName="reversedThresholds" required>
<span class="nui-text-label" i18n
>Warning and critical when below threshold
values</span
>
</nui-checkbox>
<nui-validation-message for="required" i18n>
This field is required
</nui-validation-message>
</nui-form-field>
</div>
</div>
</div>
</nui-widget-editor-accordion>

0 comments on commit 064f89f

Please sign in to comment.