only show matching network wallet in payment intents
This commit is contained in:
parent
c769f69c4e
commit
cd901f5b3e
4 changed files with 88 additions and 66 deletions
|
|
@ -104,11 +104,20 @@ angular.module('copayApp.controllers').controller('indexController', function($r
|
|||
};
|
||||
|
||||
self.setTab = function(tab) {
|
||||
if (self.tab && document.getElementById(self.tab)) {
|
||||
|
||||
if (self.tab === tab)
|
||||
return;
|
||||
|
||||
if (!self.tab)
|
||||
self.tab = 'walletHome';
|
||||
|
||||
if (document.getElementById(self.tab)) {
|
||||
document.getElementById(self.tab).className = 'tab-out tab-view ' + self.tab;
|
||||
var old = document.getElementById('menu-' + self.tab);
|
||||
old.className = '';
|
||||
old.style.borderTopColor = '';
|
||||
if (old) {
|
||||
old.className = '';
|
||||
old.style.borderTopColor = '';
|
||||
}
|
||||
}
|
||||
|
||||
if (document.getElementById(tab)) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue