From 070a612b2155791cadc94305400e05b77c514d8f Mon Sep 17 00:00:00 2001 From: Michael Abashian Date: Thu, 16 Feb 2017 13:09:39 -0500 Subject: [PATCH] Wait to update checkboxes until the credential data is on scope --- awx/ui/client/src/controllers/Credentials.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/awx/ui/client/src/controllers/Credentials.js b/awx/ui/client/src/controllers/Credentials.js index 93b0e5909c..5ba7f71aeb 100644 --- a/awx/ui/client/src/controllers/Credentials.js +++ b/awx/ui/client/src/controllers/Credentials.js @@ -349,7 +349,6 @@ export function CredentialsEdit($scope, $rootScope, $compile, $location, $log, } }); - setAskCheckboxes(); OwnerChange({ scope: $scope }); $scope.$watch("ssh_key_data", function(val) { if (val === "" || val === null || val === undefined) { @@ -498,6 +497,8 @@ export function CredentialsEdit($scope, $rootScope, $compile, $location, $log, } $scope.credential_obj = data; + setAskCheckboxes(); + $scope.$emit('credentialLoaded'); Wait('stop'); })