mirror of
https://github.com/optim-enterprises-bv/vault.git
synced 2025-11-02 03:27:54 +00:00
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:
@@ -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">
|
||||
|
||||
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user