ignite-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From anovi...@apache.org
Subject [43/50] [abbrv] ignite git commit: IGNITE-843 Dropdown should be disabled if no options provided.
Date Mon, 28 Mar 2016 08:48:23 GMT
 IGNITE-843 Dropdown should be disabled if no options provided.


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

Branch: refs/heads/ignite-2875
Commit: e1a5dad7c51601d7aa88d362bffbef29f1ef5d8c
Parents: e7dd846
Author: Alexey Kuznetsov <akuznetsov@apache.org>
Authored: Fri Mar 25 14:29:03 2016 +0700
Committer: Alexey Kuznetsov <akuznetsov@apache.org>
Committed: Fri Mar 25 14:29:03 2016 +0700

----------------------------------------------------------------------
 .../src/main/js/app/modules/form/field/dropdown.jade             | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ignite/blob/e1a5dad7/modules/control-center-web/src/main/js/app/modules/form/field/dropdown.jade
----------------------------------------------------------------------
diff --git a/modules/control-center-web/src/main/js/app/modules/form/field/dropdown.jade b/modules/control-center-web/src/main/js/app/modules/form/field/dropdown.jade
index db607a1..fd8456c 100644
--- a/modules/control-center-web/src/main/js/app/modules/form/field/dropdown.jade
+++ b/modules/control-center-web/src/main/js/app/modules/form/field/dropdown.jade
@@ -26,7 +26,7 @@
         data-multiple='1'
 
         ng-model='dropdown.value'
-        ng-disabled='dropdown.ngDisabled'
+        ng-disabled='dropdown.ngDisabled || !dropdown.options || !dropdown.options.length'
 
         data-ng-required='required || false'
 
@@ -45,7 +45,7 @@
         bs-options='item.value as item.label for item in dropdown.options' 
 
         ng-model='dropdown.value'
-        ng-disabled='dropdown.ngDisabled'
+        ng-disabled='dropdown.ngDisabled || !dropdown.options || !dropdown.options.length'
 
         data-ng-required='required || false'
 


Mime
View raw message