mirror of
https://github.com/status-im/consul.git
synced 2025-01-10 05:45:46 +00:00
663a5642c2
* Upgrade to 3.25 via ember-cli-update * v3.25.3...v3.26.1 * v3.26.1...v3.27.0 Co-authored-by: Michael Klein <michael@firstiwaslike.com>
11 lines
343 B
JavaScript
11 lines
343 B
JavaScript
import { validatePresence } from 'ember-changeset-validations/validators';
|
|
import validateSometimes from 'consul-ui/validations/sometimes';
|
|
export default (schema) => ({
|
|
Name: [validatePresence(true)],
|
|
Value: [
|
|
validateSometimes(validatePresence(true), function () {
|
|
return this.get('HeaderType') !== 'Present';
|
|
}),
|
|
],
|
|
});
|