commit
7e2d3e74b2
10 changed files with 73 additions and 49 deletions
|
|
@ -42,4 +42,4 @@ wp: build-wp
|
|||
|
||||
androidrun:
|
||||
make -C $(WORKDIR)android run
|
||||
adb logcat | grep copay.js
|
||||
adb logcat | grep chromium
|
||||
|
|
|
|||
|
|
@ -5,7 +5,7 @@
|
|||
"manifest_version": 2,
|
||||
"name": "BitPay",
|
||||
"description": "The BitPay Bitcoin Wallet",
|
||||
"version": "0.7.0",
|
||||
"version": "0.8.0",
|
||||
"permissions": [
|
||||
"storage",
|
||||
"unlimitedStorage",
|
||||
|
|
|
|||
|
|
@ -6,7 +6,7 @@
|
|||
"name": "bitpay",
|
||||
"description": "The BitPay Bitcoin Wallet",
|
||||
"author": "BitPay",
|
||||
"version": "0.7.0",
|
||||
"version": "0.8.0",
|
||||
"keywords": [
|
||||
"wallet",
|
||||
"copay",
|
||||
|
|
|
|||
|
|
@ -1,14 +1,14 @@
|
|||
<span class="wallet-activity">
|
||||
|
||||
<div ng-if="x.types.indexOf('NewCopayer')>=0 && x.wallet.n>1">
|
||||
<div ng-if="x.type == 'NewCopayer' && x.wallet.n>1">
|
||||
Copayer joined
|
||||
</div>
|
||||
|
||||
<div ng-if="x.types.indexOf('NewCopayer')>=0 && x.wallet.n==1">
|
||||
<div ng-if="x.type == 'NewCopayer' && x.wallet.n==1">
|
||||
Wallet created
|
||||
</div>
|
||||
|
||||
<div ng-if="x.types.indexOf('NewOutgoingTx')>=0">
|
||||
<div ng-if="x.type == 'NewOutgoingTx'">
|
||||
<span translate>Payment Sent </span>
|
||||
<div class="wallet-activity-amount">
|
||||
{{x.amountStr}}
|
||||
|
|
@ -17,36 +17,48 @@
|
|||
|
||||
|
||||
|
||||
<div ng-if="x.types.indexOf('NewIncomingTx')>=0">
|
||||
<div ng-if="x.type == 'NewIncomingTx'">
|
||||
<span translate>Payment Received</span>
|
||||
<div class="wallet-activity-amount">
|
||||
{{x.amountStr}}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div ng-if="x.types.indexOf('TxProposalRemoved')>=0">
|
||||
<div ng-if="x.type == 'TxProposalRemoved'">
|
||||
<i class="icon ion-ios-close-empty size-21" ng-style="{'color':x.wallet.color}"></i>
|
||||
<span translate>Proposal Deleted</span>
|
||||
<span translate>Proposal Deleted</span>:
|
||||
<i>{{x.message}}</i>
|
||||
<div class="wallet-activity-amount">
|
||||
{{x.amountStr}}:
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div ng-if="x.types.indexOf('TxProposalRejected')>=0">
|
||||
<div ng-if="x.type == 'TxProposalRejected'">
|
||||
<i class="icon ion-ios-close-empty size-21" ng-style="{'color':x.wallet.color}"></i>
|
||||
<span translate>Proposal Rejected</span>
|
||||
<span translate>Proposal Rejected</span>:
|
||||
<i>{{x.message}}</i>
|
||||
<div class="wallet-activity-amount">
|
||||
{{x.amountStr}}:
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div ng-if="x.types.indexOf('TxProposalRemoved') == -1 && x.types.indexOf('TxProposalRejected') == -1">
|
||||
<span ng-if="x.types.indexOf('NewTxProposal')>=0 && x.types.indexOf('NewOutgoingTx')==-1 ">
|
||||
<i class="icon ion-arrow-up-c size-21" ng-style="{'color':x.wallet.color}"></i>
|
||||
|
||||
{{x.amountStr}}
|
||||
<i>{{x.message}}</i>
|
||||
</span>
|
||||
<span ng-if="x.types.indexOf('TxProposalAcceptedBy')>=0 && x.types.indexOf('NewTxProposal') == -1 && x.types.indexOf('NewOutgoingTx')==-1">
|
||||
<i class="icon ion-checkmark-round size-21" ng-style="{'color':x.wallet.color}"></i>
|
||||
<span translate>Proposal Accepted</span>
|
||||
</span>
|
||||
</div>
|
||||
<span ng-if="x.type == 'NewTxProposal'">
|
||||
<i class="icon ion-arrow-up-c size-21" ng-style="{'color':x.wallet.color}"></i>
|
||||
<span translate>New Proposal</span>:
|
||||
<i>{{x.message}}</i>
|
||||
<div class="wallet-activity-amount">
|
||||
{{x.amountStr}}
|
||||
</div>
|
||||
</span>
|
||||
|
||||
<span ng-if="x.type == 'TxProposalAcceptedBy'">
|
||||
<i class="icon ion-checkmark-round size-21" ng-style="{'color':x.wallet.color}"></i>
|
||||
<span translate>Proposal Accepted</span>
|
||||
<i>{{x.message}}</i>
|
||||
<div class="wallet-activity-amount">
|
||||
{{x.amountStr}}
|
||||
</div>
|
||||
</span>
|
||||
|
||||
<p class="wallet-activity-note">
|
||||
<!-- {{x.types}} -->
|
||||
|
|
|
|||
|
|
@ -69,10 +69,12 @@ angular.module('copayApp.controllers').controller('preferencesController',
|
|||
|
||||
$scope.touchIdChange = function() {
|
||||
var newStatus = $scope.touchIdEnabled;
|
||||
walletService.setTouchId(wallet, newStatus, function(err) {
|
||||
walletService.setTouchId(wallet, !!newStatus, function(err) {
|
||||
if (err) {
|
||||
$log.warn(err);
|
||||
$scope.touchIdEnabled = !newStatus;
|
||||
$timeout(function() {
|
||||
$scope.$apply();
|
||||
}, 1);
|
||||
return;
|
||||
}
|
||||
$log.debug('Touch Id status changed: ' + newStatus);
|
||||
|
|
|
|||
|
|
@ -58,7 +58,6 @@ angular.module('copayApp.controllers').controller('tabHomeController',
|
|||
profileService.getNotifications({
|
||||
limit: 3
|
||||
}, function(err, n) {
|
||||
console.log('[tab-home.js.57]', n); //TODO
|
||||
if (err) {
|
||||
console.log('[tab-home.js.35:err:]', $log.error(err)); //TODO
|
||||
return;
|
||||
|
|
|
|||
|
|
@ -822,25 +822,29 @@ angular.module('copayApp.services')
|
|||
};
|
||||
});
|
||||
|
||||
// condense
|
||||
var finale = [],
|
||||
prev;
|
||||
|
||||
var finale = shown; // GROUPING DISABLED!
|
||||
|
||||
lodash.each(shown, function(x) {
|
||||
if (prev && prev.walletId === x.walletId && prev.txpId && prev.txpId === x.txpId && prev.creatorId && prev.creatorId === x.creatorId) {
|
||||
prev.types.push(x.type);
|
||||
prev.data = lodash.assign(prev.data, x.data);
|
||||
prev.txid = prev.txid || x.txid;
|
||||
prev.amountStr = prev.amountStr || x.amountStr;
|
||||
prev.creatorName = prev.creatorName || x.creatorName;
|
||||
} else {
|
||||
finale.push(x);
|
||||
prev = x;
|
||||
}
|
||||
});
|
||||
|
||||
// messages...
|
||||
// var finale = [],
|
||||
// prev;
|
||||
//
|
||||
//
|
||||
// // Item grouping... DISABLED.
|
||||
//
|
||||
// // REMOVE (if we want 1-to-1 notification) ????
|
||||
// lodash.each(shown, function(x) {
|
||||
// if (prev && prev.walletId === x.walletId && prev.txpId && prev.txpId === x.txpId && prev.creatorId && prev.creatorId === x.creatorId) {
|
||||
// prev.types.push(x.type);
|
||||
// prev.data = lodash.assign(prev.data, x.data);
|
||||
// prev.txid = prev.txid || x.txid;
|
||||
// prev.amountStr = prev.amountStr || x.amountStr;
|
||||
// prev.creatorName = prev.creatorName || x.creatorName;
|
||||
// } else {
|
||||
// finale.push(x);
|
||||
// prev = x;
|
||||
// }
|
||||
// });
|
||||
//
|
||||
|
||||
var u = bwcService.getUtils();
|
||||
lodash.each(finale, function(x) {
|
||||
|
|
|
|||
|
|
@ -995,10 +995,17 @@ angular.module('copayApp.services').factory('walletService', function($log, $tim
|
|||
};
|
||||
|
||||
root.setTouchId = function(wallet, enabled, cb) {
|
||||
|
||||
var opts = {
|
||||
touchIdFor: {}
|
||||
};
|
||||
opts.touchIdFor[wallet.id] = enabled;
|
||||
|
||||
fingerprintService.check(wallet, function(err) {
|
||||
if (err) return cb(err); {
|
||||
$log.debug(err);
|
||||
return;
|
||||
if (err) {
|
||||
opts.touchIdFor[wallet.id] = !enabled;
|
||||
$log.debug('Error with fingerprint:' + err);
|
||||
return cb(err);
|
||||
}
|
||||
configService.set(opts, cb);
|
||||
});
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
[Desktop Entry]
|
||||
Type=Application
|
||||
Version=0.7.0
|
||||
Version=0.8.0
|
||||
Name=BitPay
|
||||
Comment=The BitPay Bitcoin Wallet
|
||||
Exec=bitpay
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@
|
|||
; SEE THE DOCUMENTATION FOR DETAILS ON CREATING INNO SETUP SCRIPT FILES!
|
||||
|
||||
#define MyAppName "bitpay"
|
||||
#define MyAppVersion "0.7.0"
|
||||
#define MyAppVersion "0.8.0"
|
||||
#define MyAppPublisher "BitPay"
|
||||
#define MyAppURL "https://bitpay.com"
|
||||
#define MyAppExeName "*NAMECASENOSPACE.exe"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue