From ad454ba7b6ec9bc00557518375d2fd7cfb89dd5c Mon Sep 17 00:00:00 2001 From: John Shaver Date: Tue, 7 Nov 2017 14:37:50 -0700 Subject: [PATCH] The grant checkboxes are now initialing correctly --- js/issuer.js | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/js/issuer.js b/js/issuer.js index 08e898d..3fe4572 100644 --- a/js/issuer.js +++ b/js/issuer.js @@ -164,8 +164,13 @@ $(function () { $scope.find('.js-scope-desc').text(grantDescriptions[scope]); } else { - $scope.find('.js-scope-toggle').prop('checked', false); - $scope.find('.js-scope-toggle').prop('disabled', true); + //This disables the check/checkbox when we have an unrecognized grant. + //This is disabled for testing until we can discover grants automatically. + //TODO: Enable this when grants are discoverable + //TODO: Indicate to user that this is disabled, not just unchecked. + //$scope.find('.js-scope-toggle').prop('checked', false); + //$scope.find('.check').attr("src", "./img/unpressed-check.png"); + //$scope.find('.js-scope-toggle').prop('disabled', true); $scope.find('.js-scope-desc').text(scope); }