how comment on tx list
This commit is contained in:
parent
aa076d7ccd
commit
28eb3ee989
4 changed files with 10 additions and 20 deletions
|
|
@ -128,7 +128,7 @@
|
|||
<li class="p10 oh" ng-show="btx.note">
|
||||
<span class="text-gray" translate>Comment</span>
|
||||
<span class="right enable_text_select">{{btx.note.body}}</span><br>
|
||||
<span class="right text-italic text-gray size-12 m10t">
|
||||
<span class="right text-italic text-gray size-12">
|
||||
<span>{{btx.note.editedByName}}</span>
|
||||
<time>{{btx.note.editedOn * 1000 | amTimeAgo}}</time></span>
|
||||
</span>
|
||||
|
|
|
|||
|
|
@ -202,7 +202,12 @@
|
|||
<img src="img/icon-moved.svg" alt="sync" width="40" ng-show="btx.action == 'moved'">
|
||||
</div>
|
||||
<div class="m10t">
|
||||
<span ng-show="btx.action == 'received'" translate>Received</span>
|
||||
<span ng-show="btx.action == 'received'">
|
||||
<span class="ellipsis">
|
||||
<span ng-if="btx.note.body">{{btx.note.body}}</span>
|
||||
<span ng-if="!btx.note.body" translate> Received</span>
|
||||
</span>
|
||||
</span>
|
||||
<span ng-show="btx.action == 'sent'">
|
||||
<span class="ellipsis">
|
||||
<span ng-if="btx.message">{{btx.message}}</span>
|
||||
|
|
|
|||
|
|
@ -757,6 +757,8 @@ angular.module('copayApp.controllers').controller('indexController', function($r
|
|||
|
||||
var confirmedTxs = self.removeAndMarkSoftConfirmedTx(txsFromLocal);
|
||||
var endingTxid = confirmedTxs[0] ? confirmedTxs[0].txid : null;
|
||||
var endingTs = confirmedTxs[0] ? confirmedTxs[0].ts : null;
|
||||
console.log('[index.js.760:endingTs:]',endingTs); //TODO
|
||||
|
||||
|
||||
// First update
|
||||
|
|
|
|||
|
|
@ -22,24 +22,8 @@ angular.module('copayApp.controllers').controller('preferencesHistory',
|
|||
return dateObj.toJSON();
|
||||
}
|
||||
|
||||
function formatString(str) {
|
||||
if (!str) return '';
|
||||
|
||||
if (str.indexOf('"') !== -1) {
|
||||
//replace all
|
||||
str = str.replace(new RegExp('"', 'g'), '\'');
|
||||
}
|
||||
|
||||
//escaping commas
|
||||
str = '\"' + str + '\"';
|
||||
console.log('[index.js.720:str:]', str); //TODO
|
||||
|
||||
return str;
|
||||
}
|
||||
|
||||
var step = 6;
|
||||
var unique = {};
|
||||
|
||||
function getHistory(cb) {
|
||||
storageService.getTxHistory(c.walletId, function(err, txs) {
|
||||
if (err) return cb(err);
|
||||
|
|
@ -52,7 +36,6 @@ angular.module('copayApp.controllers').controller('preferencesHistory',
|
|||
}
|
||||
|
||||
allTxs.push(txsFromLocal);
|
||||
console.log('[preferencesHistory.js.56:allTxs:]',allTxs); //TODO
|
||||
return cb(null, lodash.flatten(allTxs));
|
||||
});
|
||||
}
|
||||
|
|
@ -111,7 +94,7 @@ console.log('[preferencesHistory.js.77]', txs); //TODO
|
|||
|
||||
self.csvContent.push({
|
||||
'Date': formatDate(it.time * 1000),
|
||||
'Destination': formatString(it.addressTo),
|
||||
'Destination': it.addressTo || '',
|
||||
'Description': _note,
|
||||
'Amount': _amount,
|
||||
'Currency': 'BTC',
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue