qpid-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From eal...@apache.org
Subject qpid-dispatch git commit: DISPATCH-834 Check-in missing change to router edit dialog
Date Wed, 18 Oct 2017 16:15:47 GMT
Repository: qpid-dispatch
Updated Branches:
  refs/heads/config-read-write e1418ab53 -> c9100825c


DISPATCH-834 Check-in missing change to router edit dialog


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

Branch: refs/heads/config-read-write
Commit: c9100825c04b73a41d066b8a0ef099db9afb9889
Parents: e1418ab
Author: Ernest Allen <eallen@redhat.com>
Authored: Wed Oct 18 12:15:31 2017 -0400
Committer: Ernest Allen <eallen@redhat.com>
Committed: Wed Oct 18 12:15:31 2017 -0400

----------------------------------------------------------------------
 console/config/js/qdrNewNode.js | 10 +++++++++-
 1 file changed, 9 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/qpid-dispatch/blob/c9100825/console/config/js/qdrNewNode.js
----------------------------------------------------------------------
diff --git a/console/config/js/qdrNewNode.js b/console/config/js/qdrNewNode.js
index c756d20..d152388 100644
--- a/console/config/js/qdrNewNode.js
+++ b/console/config/js/qdrNewNode.js
@@ -275,7 +275,15 @@ var QDR = (function(QDR) {
     $scope.attributeRequired = '';
     $scope.attributeUnique = '';
     $scope.active = 'router'
-    $scope.fieldsetDivs = "/fieldsetDivs.html"
+
+    $scope.isItDisabled = function (attribute) {
+      if (requiredAttrs[entityType] && requiredAttrs[entityType].indexOf(attribute.name)
> -1) {
+        return requiredAttrs[entityType].some( function (attr) {
+          return (attr !== attribute.name) && (getEdivAttr($scope.entities[0], attr).value)
+        })
+      } else
+        return false
+    }
 
     $scope.isItRequired = function (attribute) {
       if (requiredAttrs[entityType] && requiredAttrs[entityType].indexOf(attribute.name)
> -1) {


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@qpid.apache.org
For additional commands, e-mail: commits-help@qpid.apache.org


Mime
View raw message