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

Commit

Permalink
Merge pull request #9145 from NejcZdovc/hotfix/#9137-show-all
Browse files Browse the repository at this point in the history
Displays hide button in the ledger table
  • Loading branch information
NejcZdovc authored May 30, 2017
2 parents e9b68f1 + 0fe0329 commit 033b122
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion app/renderer/components/preferences/payment/ledgerTable.js
Original file line number Diff line number Diff line change
Expand Up @@ -258,6 +258,8 @@ class LedgerTable extends ImmutableComponent {
})
}

const showButton = (hideLower && totalUnPinnedRows !== unPinnedRows.size) || (!hideLower && totalUnPinnedRows > 10)

return <section data-test-id='ledgerTable'>
<div className={css(styles.hideExcludedSites)}>
<div className={css(styles.columnOffset)} />
Expand Down Expand Up @@ -301,7 +303,7 @@ class LedgerTable extends ImmutableComponent {
]}
/>
{
(totalUnPinnedRows !== unPinnedRows.size && hideLower)
showButton
? <div className={css(styles.ledgerTable__showAllWrap)}>
<BrowserButton secondaryColor
testId={hideLower ? 'showAll' : 'hideLower'}
Expand Down

0 comments on commit 033b122

Please sign in to comment.