Skip to content
This repository has been archived by the owner on Apr 15, 2019. It is now read-only.

Commit

Permalink
Merge pull request #684 from LiskHQ/683-fix-transactions-tab
Browse files Browse the repository at this point in the history
Fix after-migration issues in transactions tab - Closes #683
  • Loading branch information
slaweet authored Aug 30, 2017
2 parents e56d9b2 + ee7358c commit a9eb8ff
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions src/components/transactions/amount.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ const Amount = (props) => {
params.className = 'inButton';
} else if (props.value.type !== 0 || props.value.recipientId !== props.address) {
params.className = 'outButton';
params.tooltipText = 'Repeat the transaction';
params.clickToSendEnabled = true;
params.tooltipText = props.value.type === 0 ? 'Repeat the transaction' : undefined;
params.clickToSendEnabled = props.value.type === 0;
}
return <TooltipWrapper tooltip={params.tooltipText}>
<ClickToSend rawAmount={props.value.amount}
Expand Down
6 changes: 3 additions & 3 deletions src/components/transactions/status.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@ const Status = (props) => {
let template = null;
if (props.value.type === 0 &&
props.value.senderId === props.value.recipientId) {
template = <IconButton icon='replay' />;
template = <IconButton icon='replay' disabled={true}/>;
} else if (props.value.senderId !== props.address) {
template = <IconButton icon='call_received' className={styles.in} />;
template = <IconButton icon='call_received' className={styles.in} disabled={true}/>;
} else if (props.value.type !== 0 || props.value.recipientId !== props.address) {
template = <IconButton icon='call_made' className={styles.out} />;
template = <IconButton icon='call_made' className={styles.out} disabled={true}/>;
}
return template;
};
Expand Down
2 changes: 1 addition & 1 deletion src/components/transactions/transactionRow.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ const TransactionRow = props => (
<Spinner />}
</td>
<td className={`${props.tableStyle.rowCell} ${styles.centerText} ${styles.hiddenXs}`}>
<TooltipWrapper tooltip={`${props.value.confirmations} confirmation${props.value.confirmations !== 1 ? 's' : ''}`}>{props.value.id}</TooltipWrapper>
<TooltipWrapper tooltip={`${props.value.confirmations || 0} confirmation${props.value.confirmations !== 1 ? 's' : ''}`}>{props.value.id}</TooltipWrapper>
</td>
<td className={`${props.tableStyle.rowCell} ${styles.centerText}`}>
<TransactionType {...props.value} address={props.address}></TransactionType>
Expand Down

0 comments on commit a9eb8ff

Please sign in to comment.