ignite-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sboi...@apache.org
Subject [23/28] ignite git commit: IGNITE-6824 Add step validator support to pcScaleNumber directive, add "step" validation message to pc-form-field-size pug mixin.
Date Mon, 13 Nov 2017 09:52:17 GMT
IGNITE-6824 Add step validator support to pcScaleNumber directive, add "step" validation message
to pc-form-field-size pug mixin.


Project: http://git-wip-us.apache.org/repos/asf/ignite/repo
Commit: http://git-wip-us.apache.org/repos/asf/ignite/commit/250ceb72
Tree: http://git-wip-us.apache.org/repos/asf/ignite/tree/250ceb72
Diff: http://git-wip-us.apache.org/repos/asf/ignite/diff/250ceb72

Branch: refs/heads/ignite-zk
Commit: 250ceb726d38631282599fb39b3990e66a667922
Parents: 78a8403
Author: Ilya Borisov <iborisov@gridgain.com>
Authored: Mon Nov 13 13:29:47 2017 +0700
Committer: Andrey Novikov <anovikov@gridgain.com>
Committed: Mon Nov 13 13:29:47 2017 +0700

----------------------------------------------------------------------
 .../components/page-configure-basic/components/pcbScaleNumber.js    | 1 +
 .../components/page-configure-basic/mixins/pcb-form-field-size.pug  | 1 +
 2 files changed, 2 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ignite/blob/250ceb72/modules/web-console/frontend/app/components/page-configure-basic/components/pcbScaleNumber.js
----------------------------------------------------------------------
diff --git a/modules/web-console/frontend/app/components/page-configure-basic/components/pcbScaleNumber.js
b/modules/web-console/frontend/app/components/page-configure-basic/components/pcbScaleNumber.js
index 93d87ba..663d631 100644
--- a/modules/web-console/frontend/app/components/page-configure-basic/components/pcbScaleNumber.js
+++ b/modules/web-console/frontend/app/components/page-configure-basic/components/pcbScaleNumber.js
@@ -28,6 +28,7 @@ export default function pcbScaleNumber() {
             ngModel.$parsers.push(down);
             ngModel.$validators.min = wrap(ngModel.$validators.min)(up);
             ngModel.$validators.max = wrap(ngModel.$validators.max)(up);
+            ngModel.$validators.step = wrap(ngModel.$validators.step)(up);
 
             scope.$watch(attr.pcbScaleNumber, (value, old) => {
                 factor = Number(value);

http://git-wip-us.apache.org/repos/asf/ignite/blob/250ceb72/modules/web-console/frontend/app/components/page-configure-basic/mixins/pcb-form-field-size.pug
----------------------------------------------------------------------
diff --git a/modules/web-console/frontend/app/components/page-configure-basic/mixins/pcb-form-field-size.pug
b/modules/web-console/frontend/app/components/page-configure-basic/mixins/pcb-form-field-size.pug
index fccd6ca..0cd5d01 100644
--- a/modules/web-console/frontend/app/components/page-configure-basic/mixins/pcb-form-field-size.pug
+++ b/modules/web-console/frontend/app/components/page-configure-basic/mixins/pcb-form-field-size.pug
@@ -63,6 +63,7 @@ mixin pcb-form-field-size(label, model, name, disabled, required, placeholder,
m
             +pcb-form-field-feedback(form, name, 'min', `Value is less than allowable minimum:
${min}`)
             +pcb-form-field-feedback(form, name, 'max', `Value is more than allowable maximum:
${max}`)
             +pcb-form-field-feedback(form, name, 'number', 'Only numbers allowed')
+            +pcb-form-field-feedback(form, name, 'step', 'Step is invalid')
 
             .input-tip
                 +pcb-form-field-input(attributes=attributes)


Mime
View raw message