Skip to content
Snippets Groups Projects
Commit e8fe0de6 authored by Benoit Lavenier's avatar Benoit Lavenier
Browse files

- Identity : enable button "Certify" is not login

parent a10041a5
No related branches found
No related tags found
No related merge requests found
...@@ -455,10 +455,9 @@ function WotCertificationsViewController($scope, $rootScope, $state, $timeout, $ ...@@ -455,10 +455,9 @@ function WotCertificationsViewController($scope, $rootScope, $state, $timeout, $
$scope.formData = identity; $scope.formData = identity;
$scope.canCertify = $scope.formData.hasSelf && (!csWallet.isLogin() || (!csWallet.isUserPubkey(pubkey))); $scope.canCertify = $scope.formData.hasSelf && (!csWallet.isLogin() || (!csWallet.isUserPubkey(pubkey)));
$scope.canSelectAndCertify = $scope.formData.hasSelf && csWallet.isUserPubkey(pubkey); $scope.canSelectAndCertify = $scope.formData.hasSelf && csWallet.isUserPubkey(pubkey);
$scope.alreadyCertified = $scope.canCertify ? $scope.alreadyCertified = !$scope.canCertify || !csWallet.isLogin() ? false :
(!csWallet.isLogin() || (!!_.findWhere(identity.received_cert, { pubkey: csWallet.data.pubkey, valid: true }) ||
!!_.findWhere(identity.received_cert, { pubkey: csWallet.data.pubkey, valid: true }) || !!_.findWhere(identity.received_cert_pending, { pubkey: csWallet.data.pubkey, valid: true }));
!!_.findWhere(identity.received_cert_pending, { pubkey: csWallet.data.pubkey, valid: true })) : false;
$scope.loading = false; $scope.loading = false;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment