UI: Part three bug bash custom messages (#25229)

* Address comments

* Fix serailizer warning mesage

* Reset pageFilter when exiting

* Add start and end time validation and fix bugs

* Fix failing tests

* Add validation tests

* Set end time in contorller

* Address feedback

* Remove new date

* Put new Date back
This commit is contained in:
Kianna
2024-02-07 10:43:57 -08:00
committed by GitHub
parent 0d83188980
commit 4283caaabe
14 changed files with 113 additions and 39 deletions

View File

@@ -94,11 +94,12 @@
<Input
@type="datetime-local"
@value={{date-format (get @model this.valuePath) "yyyy-MM-dd'T'HH:mm"}}
class="input has-top-margin-xs is-auto-width is-block"
name={{@attr.name}}
id={{@attr.name}}
data-test-input={{@attr.name}}
{{on "change" this.onChangeWithEvent}}
class="input has-top-margin-xs has-bottom-margin-xs is-auto-width is-block
{{if this.validationError 'has-error-border'}}"
{{on "focusout" this.onChangeWithEvent}}
/>
{{else if (eq @attr.options.editType "searchSelect")}}
<div class="form-section">

View File

@@ -10,6 +10,7 @@ import { capitalize } from 'vault/helpers/capitalize';
import { humanize } from 'vault/helpers/humanize';
import { dasherize } from 'vault/helpers/dasherize';
import { assert } from '@ember/debug';
/**
* @module FormField
* `FormField` components are field elements associated with a particular model.