Hide status-bar after sign/reject/send a tx
This commit is contained in:
parent
68d2cbe922
commit
8dbeb0971c
1 changed files with 7 additions and 1 deletions
|
|
@ -1,6 +1,6 @@
|
||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
angular.module('copayApp.services').factory('txStatus', function($modal, lodash, profileService, $timeout, txFormatService) {
|
angular.module('copayApp.services').factory('txStatus', function($modal, lodash, profileService, $timeout, txFormatService, isCordova) {
|
||||||
var root = {};
|
var root = {};
|
||||||
|
|
||||||
root.notify = function(txp, cb) {
|
root.notify = function(txp, cb) {
|
||||||
|
|
@ -47,6 +47,9 @@ angular.module('copayApp.services').factory('txStatus', function($modal, lodash,
|
||||||
$scope.type = type;
|
$scope.type = type;
|
||||||
$scope.tx = txFormatService.processTx(txp);
|
$scope.tx = txFormatService.processTx(txp);
|
||||||
$scope.color = fc.backgroundColor;
|
$scope.color = fc.backgroundColor;
|
||||||
|
if (isCordova && StatusBar.isVisible) {
|
||||||
|
StatusBar.hide();
|
||||||
|
}
|
||||||
$scope.cancel = function() {
|
$scope.cancel = function() {
|
||||||
$modalInstance.dismiss('cancel');
|
$modalInstance.dismiss('cancel');
|
||||||
};
|
};
|
||||||
|
|
@ -59,6 +62,9 @@ angular.module('copayApp.services').factory('txStatus', function($modal, lodash,
|
||||||
});
|
});
|
||||||
|
|
||||||
modalInstance.result.finally(function() {
|
modalInstance.result.finally(function() {
|
||||||
|
if (isCordova && !StatusBar.isVisible) {
|
||||||
|
StatusBar.show();
|
||||||
|
}
|
||||||
var m = angular.element(document.getElementsByClassName('reveal-modal'));
|
var m = angular.element(document.getElementsByClassName('reveal-modal'));
|
||||||
m.addClass('hideModal');
|
m.addClass('hideModal');
|
||||||
});
|
});
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue