diff --git a/css/src/desktop.css b/css/src/desktop.css index 21db4ac7a..66f7dabfd 100644 --- a/css/src/desktop.css +++ b/css/src/desktop.css @@ -26,10 +26,6 @@ a:hover { color: #2980b9; } -.last-transactions-content:hover { - background: #eee; -} - a.button-setup.add-wallet:hover { opacity: 1; } @@ -51,11 +47,6 @@ ul.pagination li.current a:hover, ul.pagination li.current a:focus { background: #16A085; } -table tr:hover { - background-color: #eee; - cursor: pointer; -} - .button.outline.light-gray:hover { background: rgba(206,213,220,0.40); color: #4B6178; @@ -187,7 +178,4 @@ a.text-warning:hover {color: #FD7262;} color: #fff; } -.last-transactions-content.active:hover { - background-color: #E4E8EC; -} diff --git a/css/src/main.css b/css/src/main.css index 22d4ff963..510a0e328 100644 --- a/css/src/main.css +++ b/css/src/main.css @@ -616,11 +616,6 @@ ul.tx-copayers { .ma { margin: 0 auto;} .tu {text-transform: uppercase;} -.small { - font-size: 60%; - line-height: inherit; -} - .line-dashed-setuph-v { border-left: 1px dashed #415970; } @@ -850,6 +845,8 @@ input[type=number]::-webkit-outer-spin-button { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; + padding-top: 3px; + line-height: 120%; } ul.pagination li.current a { diff --git a/css/src/mobile.css b/css/src/mobile.css index 72239c14d..e7b06e13a 100644 --- a/css/src/mobile.css +++ b/css/src/mobile.css @@ -121,7 +121,7 @@ } .modal-mobile { - padding: 60px 0.5rem; + padding: 20px .5rem; } .reveal-modal { @@ -393,11 +393,6 @@ transform: none !important; } - .button.secondary:hover, button.secondary:hover { - background: #008CC1; - color: #fff; - } - .move-right .close-menu { cursor: pointer; box-shadow: none; @@ -462,10 +457,22 @@ color: #1ABC9C; } + .tab-bar { + position: relative; + } } @media (max-width: 640px) { + + .tab-bar { + position: absolute; + } + + .modal-mobile { + padding: 60px 0.5rem; + } + .tx-comment { border-top: 1px solid #eee; padding-top: 10px; diff --git a/js/controllers/copayers.js b/js/controllers/copayers.js index 9fc338ad0..877efd6f0 100644 --- a/js/controllers/copayers.js +++ b/js/controllers/copayers.js @@ -33,25 +33,24 @@ angular.module('copayApp.controllers').controller('CopayersController', }; $scope.deleteWallet = function() { - $scope.loading = true; - identityService.deleteWallet(w, function(err) { - if (err) { - $scope.loading = null; - $scope.error = err.message || err; - copay.logger.warn(err); - $timeout(function() { - $scope.$digest(); - }); - } else { - $scope.loading = false; - if ($rootScope.wallet) { - go.walletHome(); + $rootScope.starting = true; + $timeout(function() { + identityService.deleteWallet(w, function(err) { + $rootScope.starting = false; + if (err) { + $scope.error = err.message || err; + copay.logger.warn(err); + $timeout(function () { $scope.$digest(); }); + } else { + if ($rootScope.wallet) { + go.walletHome(); + } + $timeout(function() { + notification.success('Success', 'The wallet "' + (w.name || w.id) + '" was deleted'); + }); } - $timeout(function() { - notification.success('Success', 'The wallet "' + (w.name || w.id) + '" was deleted'); - }); - } - }); + }); + }, 100); }; $scope.copySecret = function(secret) { diff --git a/js/controllers/history.js b/js/controllers/history.js index e546ab3cf..f6effad96 100644 --- a/js/controllers/history.js +++ b/js/controllers/history.js @@ -18,6 +18,7 @@ angular.module('copayApp.controllers').controller('HistoryController', $scope.alternativeCurrency = []; $scope.selectPage = function(page) { + $scope.paging = true; $scope.currentPage = page; $scope.update(); }; @@ -188,6 +189,7 @@ angular.module('copayApp.controllers').controller('HistoryController', $scope.totalItems = res.nbItems; $scope.loading = false; + $scope.paging = false; setTimeout(function() { $scope.$digest(); }, 1); diff --git a/js/controllers/more.js b/js/controllers/more.js index dd633372f..0ab271512 100644 --- a/js/controllers/more.js +++ b/js/controllers/more.js @@ -119,22 +119,23 @@ angular.module('copayApp.controllers').controller('MoreController', $scope.deleteWallet = function() { $scope.loading = true; - identityService.deleteWallet(w, function(err) { - if (err) { - $scope.loading = null; - $scope.error = err.message || err; - copay.logger.warn(err); - $timeout(function () { $scope.$digest(); }); - } else { + $timeout(function() { + identityService.deleteWallet(w, function(err) { $scope.loading = false; - if ($rootScope.wallet) { - go.walletHome(); + if (err) { + $scope.error = err.message || err; + copay.logger.warn(err); + $timeout(function () { $scope.$digest(); }); + } else { + if ($rootScope.wallet) { + go.walletHome(); + } + $timeout(function() { + notification.success('Success', 'The wallet "' + (w.name || w.id) + '" was deleted'); + }); } - $timeout(function() { - notification.success('Success', 'The wallet "' + (w.name || w.id) + '" was deleted'); - }); - } - }); + }); + }, 100); }; $scope.copyText = function(text) { diff --git a/js/controllers/receive.js b/js/controllers/receive.js index 0a9e9c7ed..cdaa0b868 100644 --- a/js/controllers/receive.js +++ b/js/controllers/receive.js @@ -60,7 +60,7 @@ angular.module('copayApp.controllers').controller('ReceiveController', $modal.open({ templateUrl: 'views/modals/qr-address.html', - windowClass: 'tiny', + windowClass: 'small', controller: ModalInstanceCtrl, resolve: { address: function() { diff --git a/js/controllers/send.js b/js/controllers/send.js index ad3e861b5..2c7a372d8 100644 --- a/js/controllers/send.js +++ b/js/controllers/send.js @@ -407,10 +407,13 @@ angular.module('copayApp.controllers').controller('SendController', var $oscope = $scope; $scope.openPPModal = function(merchantData) { var ModalInstanceCtrl = function($scope, $modalInstance) { + var w = $rootScope.wallet; + var satToUnit = 1 / w.settings.unitToSatoshi; $scope.md = merchantData; $scope.alternative = $oscope._alternative; $scope.alternativeIsoCode = $oscope.alternativeIsoCode; $scope.isRateAvailable = $oscope.isRateAvailable; + $scope.unitTotal = (merchantData.total * satToUnit).toFixed(w.settings.unitDecimals); $scope.cancel = function() { $modalInstance.dismiss('cancel'); @@ -418,7 +421,7 @@ angular.module('copayApp.controllers').controller('SendController', }; $modal.open({ templateUrl: 'views/modals/paypro.html', - windowClass: 'tiny', + windowClass: 'medium', controller: ModalInstanceCtrl, }); }; @@ -534,7 +537,8 @@ angular.module('copayApp.controllers').controller('SendController', }; $scope.cancel = function(form) { - $scope.error = $scope.success = null; + $scope.error = $scope.success = $scope.newaddress = $scope.newlabel = null; + clearForm(form); $scope.toggleForm(); }; @@ -542,11 +546,23 @@ angular.module('copayApp.controllers').controller('SendController', $scope.showForm = !$scope.showForm; }; + var clearForm = function(form) { + form.newaddress.$pristine = true; + form.newaddress.$setViewValue(''); + form.newaddress.$render(); + + form.newlabel.$pristine = true; + form.newlabel.$setViewValue(''); + form.newlabel.$render(); + form.$setPristine(); + }; + // TODO change to modal $scope.submitAddressBook = function(form) { if (form.$invalid) { return; } + $scope.loading = true; $timeout(function() { var errorMsg; var entry = { @@ -563,11 +579,13 @@ angular.module('copayApp.controllers').controller('SendController', if (errorMsg) { $scope.error = errorMsg; } else { + clearForm(form); $scope.toggleForm(); notification.success('Entry created', 'New addressbook entry created') } + $scope.loading = false; $rootScope.$digest(); - }, 1); + }, 100); return; }; diff --git a/views/copayers.html b/views/copayers.html index bd9efe3b3..a38b5a25e 100644 --- a/views/copayers.html +++ b/views/copayers.html @@ -1,80 +1,86 @@
-
-
-

Share this secret with your copayers

-
+
+
- -
-
- -
-
-
-
- -
- - Please note the wallet creator must be online until all copayers have joined. - -
- -
-
- -
-
- {{secret}} -
-
-
- - Share secret - -
-
-

{{$root.wallet.getName()}}

- - [{{$root.wallet.requiredCopayers}} of {{$root.wallet.totalCopayers}} ] - - in TESTNET -
-
+ +
+
+
+

Share this secret with your copayers

-
-
-

Waiting for copayers

-
-
-
-

+ +

+
+ +
+
+
+
+ +
+ + Please note the wallet creator must be online until all copayers have joined. + +
+ +
+
+ +
+
+ {{secret}} +
+
+
+ + Share secret + +
+
+

{{$root.wallet.getName()}}

+ + [{{$root.wallet.requiredCopayers}} of {{$root.wallet.totalCopayers}} ] + + in TESTNET +
+
+
+
+
+
+

Waiting for copayers

+
+
+
+

Waiting... -

+

+
+
- -
- -
-
- -
-

Are you sure you want to cancel and delete this wallet

-
-
- -
-
- + +
+
+ +
+

Are you sure you want to cancel and delete this wallet

+
+
+ +
+
+ +
diff --git a/views/history.html b/views/history.html index daecbf5c4..c8ee08f91 100644 --- a/views/history.html +++ b/views/history.html @@ -11,38 +11,48 @@
-
+
+
+
+ Getting transactions... +
+
+
+
-
+
-
-
-
+
+
+ {{btx.comment || btx.labelTo}}   +
+
- - Unconfirmed + + Unconfirmed
-
-
+
- - - +-{{btx.amount}} - - {{$root.wallet.settings.unitName}} + + +-{{btx.amount}} + {{$root.wallet.settings.unitName}} {{btx.alternativeAmount}} {{$root.wallet.settings.alternativeIsoCode}}
-
diff --git a/views/includes/copayers.html b/views/includes/copayers.html index 3180d4b46..e69dbda3c 100644 --- a/views/includes/copayers.html +++ b/views/includes/copayers.html @@ -6,12 +6,12 @@
- + {{'Me'|translate}} - - + + {{copayer.nick}} - +
- \ No newline at end of file + diff --git a/views/modals/address-book.html b/views/modals/address-book.html index bb733ddb5..602fc10f9 100644 --- a/views/modals/address-book.html +++ b/views/modals/address-book.html @@ -1,8 +1,7 @@ -