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