You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@qpid.apache.org by ea...@apache.org on 2017/10/23 21:47:46 UTC
[44/45] qpid-dispatch git commit: DISPATCH-834 Check-in missing
change to router edit dialog
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/master
Commit: c9100825c04b73a41d066b8a0ef099db9afb9889
Parents: e1418ab
Author: Ernest Allen <ea...@redhat.com>
Authored: Wed Oct 18 12:15:31 2017 -0400
Committer: Ernest Allen <ea...@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