diff --git a/src/js/controllers/tab-home.js b/src/js/controllers/tab-home.js index 4ccd7685c..0ca076aad 100644 --- a/src/js/controllers/tab-home.js +++ b/src/js/controllers/tab-home.js @@ -32,8 +32,12 @@ angular.module('copayApp.controllers').controller('tabHomeController', $log.warn(err); return; } - - if (newRelease) $scope.newRelease = true; + if (newRelease) { + $scope.newRelease = true; + $scope.updateText = gettextCatalog.getString('There is a new version of {{appName}} available', { + appName: $scope.name + }); + } }); } @@ -213,7 +217,7 @@ angular.module('copayApp.controllers').controller('tabHomeController', walletService.getStatus(wallet, {}, function(err, status) { if (err) { - wallet.error = (err === 'WALLET_NOT_REGISTERED') ? gettextCatalog.getString('Wallet not registered') : bwcError.msg(err); + wallet.error = (err === 'WALLET_NOT_REGISTERED') ? gettextCatalog.getString('Wallet not registered') : bwcError.msg(err); $log.error(err); } else { diff --git a/src/sass/views/tab-home.scss b/src/sass/views/tab-home.scss index 6fd937188..6ebeddedd 100644 --- a/src/sass/views/tab-home.scss +++ b/src/sass/views/tab-home.scss @@ -121,18 +121,24 @@ } } .release { - cursor: pointer; - cursor: hand; - background-color: #E9E9EC; - padding-top: 30px; - padding-bottom: 20px; - text-align: center; - color: #444; - i { - margin-top: 1px; - font-size: 20px; - margin-left: 10px; - position: absolute; + text-align: center; + .item { + width: 100%; + } + .title { + font-weight: 700; + color: #444; + } + .button { + width: 100%; + border: none; + } + .big-icon-svg { + > .bg { + box-shadow: none; + } + padding-top: 2rem; + padding-bottom: 0; } } diff --git a/www/img/icon-update.svg b/www/img/icon-update.svg new file mode 100644 index 000000000..feabc1572 --- /dev/null +++ b/www/img/icon-update.svg @@ -0,0 +1,14 @@ + + + + + + + + + + diff --git a/www/views/tab-home.html b/www/views/tab-home.html index 89a1a7fdc..643d5c465 100644 --- a/www/views/tab-home.html +++ b/www/views/tab-home.html @@ -10,9 +10,18 @@ spinner="ios-small" on-refresh="onRefresh()"> -
- An update to this app is available +
+ + + + +
{{updateText}}
+ +
+ Download +
+