Wait to update checkboxes until the credential data is on scope

This commit is contained in:
Michael Abashian
2017-02-16 13:09:39 -05:00
parent dac2045d49
commit 070a612b21

View File

@@ -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');
})