From 0558e5eda055646f4b11e4318dd20bd80924b812 Mon Sep 17 00:00:00 2001 From: Vit Stanislav Date: Fri, 19 May 2017 15:58:31 +0200 Subject: [PATCH] Display reflexive transaction in gray with circle arrow #236 --- src/components/transactions/transactions.less | 3 ++- src/components/transactions/transactions.pug | 5 +++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/src/components/transactions/transactions.less b/src/components/transactions/transactions.less index c799dddfb..972a25591 100644 --- a/src/components/transactions/transactions.less +++ b/src/components/transactions/transactions.less @@ -67,7 +67,8 @@ transactions { color: #333; } - &.fee { + &.fee, + &.neutral { background-color: #eee; color: #555; font-weight: normal; diff --git a/src/components/transactions/transactions.pug b/src/components/transactions/transactions.pug index ddd9788e9..f45f4ab8e 100644 --- a/src/components/transactions/transactions.pug +++ b/src/components/transactions/transactions.pug @@ -39,10 +39,11 @@ md-card.offline-hide i.material-icons.expanding-button(ng-if='transaction.senderId !== $ctrl.account.get().address', data-show-transfer-modal, data-recipient-id='transaction.senderId') arrow_forward i.material-icons.expanding-button(ng-if='transaction.senderId === $ctrl.account.get().address', data-show-transfer-modal, data-recipient-id='transaction.recipientId') arrow_forward td(md-cell) + i.material-icons(ng-if='transaction.type === 0 && transaction.senderId === transaction.recipientId') replay i.material-icons.in(ng-if='transaction.senderId !== $ctrl.account.get().address') call_received - i.material-icons.out(ng-if='transaction.senderId === $ctrl.account.get().address') call_made + i.material-icons.out(ng-if='transaction.type !== 0 || transaction.recipientId !== $ctrl.account.get().address') call_made td(md-cell) - .amount(ng-class='{ positive: transaction.senderId !== $ctrl.account.get().address, negative: transaction.senderId === $ctrl.account.get().address }') + .amount(ng-class='{ neutral:transaction.type === 0 && transaction.senderId === transaction.recipientId, positive: transaction.senderId !== $ctrl.account.get().address, negative: transaction.type !== 0 || transaction.recipientId !== $ctrl.account.get().address }') lsk.value(amount='transaction.amount') td(md-cell) .fee