fix send notification
This commit is contained in:
parent
089c99b999
commit
3770d3a1ac
4 changed files with 21 additions and 27 deletions
|
|
@ -27,24 +27,12 @@
|
|||
</span>
|
||||
</div>
|
||||
<form ng-show="!send.fetchingURL" name="sendForm" ng-submit="send.submitForm(sendForm)" ng-disabled="send.blockUx" novalidate>
|
||||
<div class="box-notification" ng-show="send.error">
|
||||
<div class="box-icon error">
|
||||
<i class="fi-x size-24"></i>
|
||||
</div>
|
||||
<span class="text-warning size-14">
|
||||
<div class="box-notification" ng-show="send.error" ng-click="send.resetError()">
|
||||
<span class="text-warning">
|
||||
{{send.error|translate}}
|
||||
</span>
|
||||
<a class="close-notification text-warning" ng-click="send.resetForm(sendForm)">×</a>
|
||||
</div>
|
||||
<div class="box-notification" ng-show="success">
|
||||
<div class="box-icon success">
|
||||
<i class="fi-check size-24"></i>
|
||||
</div>
|
||||
<span class="text-success size-14">
|
||||
{{success|translate}}
|
||||
</span>
|
||||
<a class="close-notification text-success" ng-click="success=null">×</a>
|
||||
</div>
|
||||
|
||||
<div ng-hide="send._paypro || send.hideAddress">
|
||||
<div class="row collapse">
|
||||
|
|
|
|||
|
|
@ -163,8 +163,8 @@ input:-webkit-autofill, textarea:-webkit-autofill, select:-webkit-autofill, inpu
|
|||
.box-notification {
|
||||
position: relative;
|
||||
font-size: 12px;
|
||||
padding: 0.7rem 3rem;
|
||||
border-radius: 4px;
|
||||
padding: 0.5rem 2rem 0.5rem 0.7rem;
|
||||
border-radius: 2px;
|
||||
background: #F2F5F8;
|
||||
margin: 0 auto;
|
||||
margin-bottom: 1.6rem;
|
||||
|
|
@ -198,10 +198,9 @@ input:-webkit-autofill, textarea:-webkit-autofill, select:-webkit-autofill, inpu
|
|||
|
||||
a.close-notification {
|
||||
position: absolute;
|
||||
top: 0;
|
||||
right: 0;
|
||||
top: -4px;
|
||||
right: 10px;
|
||||
font-size: 24px;
|
||||
padding: 10px;
|
||||
}
|
||||
|
||||
ul.tx-copayers {
|
||||
|
|
|
|||
|
|
@ -521,15 +521,15 @@ a.pin-button:active {
|
|||
}
|
||||
|
||||
.dr-notification-content {
|
||||
line-height: 100%;
|
||||
padding: 7px 50px 5px 60px;
|
||||
line-height: 90%;
|
||||
padding: 10px 50px 5px 60px;
|
||||
}
|
||||
|
||||
.dr-notification-title {
|
||||
color: #fff;
|
||||
font-size: 14px;
|
||||
font-size: 12px;
|
||||
margin-bottom: 0;
|
||||
font-weight: 500;
|
||||
font-weight: 700;
|
||||
}
|
||||
|
||||
.dr-notification {
|
||||
|
|
@ -545,7 +545,7 @@ a.pin-button:active {
|
|||
}
|
||||
|
||||
.dr-notification-text {
|
||||
font-size: 12px;
|
||||
font-size: 11px;
|
||||
color: #fff;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -5,6 +5,10 @@ angular.module('copayApp.controllers').controller('sendController',
|
|||
var fc = profileService.focusedClient;
|
||||
var self = this;
|
||||
|
||||
this.resetError = function() {
|
||||
this.error = this.success = null;
|
||||
};
|
||||
|
||||
this.init = function() {
|
||||
this.isMobile = isMobile.any();
|
||||
this.isWindowsPhoneApp = isMobile.Windows() && isCordova;
|
||||
|
|
@ -12,7 +16,7 @@ angular.module('copayApp.controllers').controller('sendController',
|
|||
|
||||
$rootScope.title = fc.credentials.m > 1 ? 'Send Proposal' : 'Send';
|
||||
this.blockUx = false;
|
||||
this.error = this.success = null;
|
||||
this.resetError();
|
||||
|
||||
this.isRateAvailable = false;
|
||||
this.showScanner = false;
|
||||
|
|
@ -106,6 +110,7 @@ angular.module('copayApp.controllers').controller('sendController',
|
|||
$scope.__alternative = 0;
|
||||
}
|
||||
self.alternativeAmount = $scope.__alternative;
|
||||
self.resetError();
|
||||
},
|
||||
enumerable: true,
|
||||
configurable: true
|
||||
|
|
@ -272,8 +277,10 @@ angular.module('copayApp.controllers').controller('sendController',
|
|||
}
|
||||
};
|
||||
|
||||
|
||||
|
||||
this.resetForm = function(form) {
|
||||
this.error = this.success = null;
|
||||
this.resetError();
|
||||
this.fetchingURL = null;
|
||||
this._paypro = null;
|
||||
|
||||
|
|
@ -395,7 +402,7 @@ angular.module('copayApp.controllers').controller('sendController',
|
|||
};
|
||||
|
||||
this.onAddressChange = function(value) {
|
||||
this.error = this.success = null;
|
||||
this.resetError();
|
||||
if (!value) return '';
|
||||
|
||||
if (this._paypro)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue