Merge pull request #2201 from matiu/feature/confirm-email-msg
add message after profile creation on the cloud
This commit is contained in:
commit
89d8aaeffe
5 changed files with 28 additions and 9 deletions
|
|
@ -396,7 +396,7 @@ input:-webkit-autofill, textarea:-webkit-autofill, select:-webkit-autofill, inpu
|
|||
|
||||
|
||||
|
||||
.box-notification a.close-notification {
|
||||
a.close-notification {
|
||||
position: absolute;
|
||||
top: 8px;
|
||||
right: 10px;
|
||||
|
|
|
|||
21
index.html
21
index.html
|
|
@ -48,11 +48,9 @@
|
|||
|
||||
<div class="off-canvas-wrap" id="off-canvas-wrap" ng-show="!signingOut">
|
||||
<div class="inner-wrap">
|
||||
<span class="status" ng-if="$root.reconnecting">
|
||||
<i class="fi-loop icon-rotate"></i>
|
||||
<span translate> <strong class="size-16">Network Error</strong>.<br> Attempting to reconnect..</span>
|
||||
</span>
|
||||
<span class="status" ng-if="$root.needsEmailConfirmation">
|
||||
|
||||
<span class="status" ng-if="$root.needsEmailConfirmation && !$root.pleaseConfirmEmailAck">
|
||||
<a class="close-notification text-white" ng-click="$root.pleaseConfirmEmailAck=true">×</a>
|
||||
<a class="text-white button warning tiny m0 right" ng-click="resendVerificationEmail()">Resend</a>
|
||||
<i class="fi-alert size-36 left m20r"></i>
|
||||
<span translate>
|
||||
|
|
@ -60,6 +58,19 @@
|
|||
Please confirm your email address using the confirmation link at the message we sent you
|
||||
</span>
|
||||
</span>
|
||||
<span class="status" ng-if="$root.pleaseConfirmEmail">
|
||||
<a class="close-notification text-white" ng-click="$root.pleaseConfirmEmail=null">×</a>
|
||||
<i class="fi-alert size-36 left m20r"></i>
|
||||
<span translate>
|
||||
<strong class="size-16">Confirm your email address</strong>.<br>
|
||||
An email was sent to {{$root.iden.getName()}}. Please follow the link on it to confirm it. Unconfirmed profiles could be deleted from server.
|
||||
</span>
|
||||
|
||||
</span>
|
||||
<span class="status" ng-if="$root.reconnecting">
|
||||
<i class="fi-loop icon-rotate"></i>
|
||||
<span translate> <strong class="size-16">Network Error</strong>.<br> Attempting to reconnect..</span>
|
||||
</span>
|
||||
|
||||
<div ng-controller="SidebarController" ng-show="$root.iden && !$root.hideNavigation">
|
||||
<nav class="tab-bar">
|
||||
|
|
|
|||
|
|
@ -94,6 +94,7 @@ angular.module('copayApp.controllers').controller('CreateProfileController', fun
|
|||
}, 1);
|
||||
};
|
||||
|
||||
/* Last step. Will emit after creation so the UX gets updated */
|
||||
$scope.createDefaultWallet = function() {
|
||||
$rootScope.hideNavigation = false;
|
||||
identityService.createDefaultWallet(function(err) {
|
||||
|
|
@ -102,7 +103,12 @@ angular.module('copayApp.controllers').controller('CreateProfileController', fun
|
|||
if (err) {
|
||||
var msg = err.toString();
|
||||
$scope.error = msg;
|
||||
} else {
|
||||
if (!$scope.useLocalstorage) {
|
||||
$rootScope.pleaseConfirmEmail = true;
|
||||
}
|
||||
}
|
||||
|
||||
});
|
||||
};
|
||||
|
||||
|
|
@ -127,6 +133,7 @@ angular.module('copayApp.controllers').controller('CreateProfileController', fun
|
|||
$scope.createStep = 'email';
|
||||
}
|
||||
$scope.error = msg;
|
||||
$scope.passwordStrength = null;
|
||||
} else {
|
||||
// mobile
|
||||
if ($scope.isMobile) {
|
||||
|
|
|
|||
|
|
@ -1442,7 +1442,8 @@ Wallet.prototype.getPendingTxProposalsCount = function() {
|
|||
_.each(txps, function(inTxp, ntxid) {
|
||||
if (!inTxp.isPending(maxRejectCount))
|
||||
return;
|
||||
|
||||
// TODO: are the uxtos availables?
|
||||
//
|
||||
pending++;
|
||||
|
||||
if (!inTxp.signedBy[myId] && !inTxp.rejectedBy[myId])
|
||||
|
|
|
|||
|
|
@ -34,7 +34,7 @@
|
|||
<div class="text-gray text-center m20b">{{userOrEmail}}</div>
|
||||
</div>
|
||||
|
||||
<div class="box-notification" ng-show="error">
|
||||
<div class="box-notification" ng-show="error && !passwordStrength">
|
||||
<div class="box-icon error">
|
||||
<i class="fi-x size-24"></i>
|
||||
</div>
|
||||
|
|
@ -202,7 +202,7 @@
|
|||
<img src="img/clipo-pin.png" alt="clipo" width="380">
|
||||
</div>
|
||||
|
||||
<div class="box-notification" ng-show="error">
|
||||
<div class="box-notification" ng-show="error && !passwordStrength">
|
||||
<div class="box-icon error">
|
||||
<i class="fi-x size-24"></i>
|
||||
</div>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue