346 - Bitcoin.com Store banner on Home tab
This commit is contained in:
parent
953a465606
commit
082686def6
4 changed files with 21 additions and 0 deletions
|
|
@ -155,6 +155,14 @@ angular.module('copayApp.controllers').controller('tabHomeController',
|
||||||
externalLinkService.open(url, optIn, title, message, okText, cancelText);
|
externalLinkService.open(url, optIn, title, message, okText, cancelText);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
$scope.openURL = function(url) {
|
||||||
|
if (platformInfo.isNW) {
|
||||||
|
require('nw.gui').Shell.openExternal( url );
|
||||||
|
} else {
|
||||||
|
window.open(url, '_system');
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
$scope.openNotificationModal = function(n) {
|
$scope.openNotificationModal = function(n) {
|
||||||
wallet = profileService.getWallet(n.walletId);
|
wallet = profileService.getWallet(n.walletId);
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -58,6 +58,13 @@
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
&-banner {
|
||||||
|
padding: 0;
|
||||||
|
&__img {
|
||||||
|
width: 100%;
|
||||||
|
display: block;
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
.wallet-coin-logo {
|
.wallet-coin-logo {
|
||||||
vertical-align: middle;
|
vertical-align: middle;
|
||||||
|
|
|
||||||
BIN
www/img/banner-store.png
Normal file
BIN
www/img/banner-store.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 642 KiB |
|
|
@ -85,6 +85,12 @@
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
<div class="list card card-banner">
|
||||||
|
<a ng-click="openURL('https://store.bitcoin.com/')">
|
||||||
|
<img class="card-banner__img" src="img/banner-store.png"/>
|
||||||
|
</a>
|
||||||
|
</div>
|
||||||
|
|
||||||
<div class="ng-hide list card" ng-show="walletsBtc[0] && bitpayCardItems.length>0" ng-include="'views/includes/bitpayCardsCard.html'"></div>
|
<div class="ng-hide list card" ng-show="walletsBtc[0] && bitpayCardItems.length>0" ng-include="'views/includes/bitpayCardsCard.html'"></div>
|
||||||
<div class="ng-hide list card" ng-show="walletsBtc[0] && buyAndSellItems.length>0" ng-include="'views/includes/buyAndSellCard.html'"></div>
|
<div class="ng-hide list card" ng-show="walletsBtc[0] && buyAndSellItems.length>0" ng-include="'views/includes/buyAndSellCard.html'"></div>
|
||||||
<div class="ng-hide list card" ng-show="homeIntegrations.length>0" ng-include="'views/includes/homeIntegrations.html'"></div>
|
<div class="ng-hide list card" ng-show="homeIntegrations.length>0" ng-include="'views/includes/homeIntegrations.html'"></div>
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue