Fix URI-payment for mobile
This commit is contained in:
parent
014390665a
commit
c2f2ad95ca
5 changed files with 14 additions and 6 deletions
|
|
@ -288,8 +288,8 @@ a.missing-copayers {
|
|||
box-shadow: inset -1px 0px 1px 0px rgba(0,0,0,0.20);
|
||||
}
|
||||
|
||||
.sidebar .avatar-wallet {
|
||||
background-color: #1ABC9C;
|
||||
.sidebar .avatar-wallet, .payment-uri .avatar-wallet {
|
||||
background-color: #2C3E50;
|
||||
color: #fff;
|
||||
font-size: 20px;
|
||||
font-weight: 700;
|
||||
|
|
|
|||
|
|
@ -36,12 +36,15 @@ angular.module('copayApp.controllers').controller('paymentUriController',
|
|||
|
||||
this.getWallets = function() {
|
||||
if (!profileService.profile) return;
|
||||
var config = configService.getSync();
|
||||
config.colorFor = config.colorFor || {};
|
||||
var ret = lodash.map(profileService.profile.credentials, function(c) {
|
||||
return {
|
||||
m: c.m,
|
||||
n: c.n,
|
||||
name: c.walletName,
|
||||
id: c.walletId,
|
||||
color: config.colorFor[c.walletId] || '#2C3E50'
|
||||
};
|
||||
});
|
||||
return lodash.sortBy(ret, 'walletName');
|
||||
|
|
|
|||
|
|
@ -57,7 +57,9 @@ angular.element(document).ready(function() {
|
|||
|
||||
function handleBitcoinURI(url) {
|
||||
if (!url) return;
|
||||
window.location = '#/uri-payment/' + url;
|
||||
setTimeout(function() {
|
||||
window.location = '#/uri-payment/' + url;
|
||||
}, 1000);
|
||||
}
|
||||
|
||||
window.plugins.webintent.getUri(handleBitcoinURI);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue