Ref tab-receive. Fix UI standar alignment
This commit is contained in:
parent
270a7e3373
commit
6eedcd01a6
4 changed files with 47 additions and 17 deletions
|
|
@ -98,6 +98,8 @@ angular.module('copayApp.controllers').controller('tabReceiveController', functi
|
|||
var selectedWallet = checkSelectedWallet($scope.wallet, $scope.wallets);
|
||||
$scope.onWalletSelect(selectedWallet);
|
||||
|
||||
$scope.showShareButton = platformInfo.isCordova ? (platformInfo.isIOS ? 'iOS' : 'Android') : null;
|
||||
|
||||
listeners = [
|
||||
$rootScope.$on('bwsEvent', function(e, walletId, type, n) {
|
||||
// Update current address
|
||||
|
|
@ -132,8 +134,8 @@ angular.module('copayApp.controllers').controller('tabReceiveController', functi
|
|||
$scope.showWallets = true;
|
||||
};
|
||||
|
||||
$scope.copyToClipboard = function() {
|
||||
if ($scope.isCordova) return 'bitcoin:' + $scope.addr;
|
||||
else return $scope.addr;
|
||||
$scope.shareAddress = function() {
|
||||
if (!$scope.isCordova) return;
|
||||
window.plugins.socialsharing.share('bitcoin:' + $scope.addr, null, null, null);
|
||||
}
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue