Skip to content

Commit

Permalink
Show sync indicator in account header
Browse files Browse the repository at this point in the history
  • Loading branch information
psybers committed Apr 6, 2024
1 parent b5f617d commit 9f23e99
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/desktop-client/src/components/accounts/Account.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -1407,6 +1407,7 @@ class AccountInternal extends PureComponent {
hideFraction,
addNotification,
accountsSyncing,
failedAccounts,
pushModal,
replaceModal,
showExtraBalances,
Expand Down Expand Up @@ -1478,6 +1479,7 @@ class AccountInternal extends PureComponent {
location={this.props.location}
accountName={accountName}
accountsSyncing={accountsSyncing}
failedAccounts={failedAccounts}
accounts={accounts}
transactions={transactions}
showBalances={showBalances}
Expand Down
16 changes: 16 additions & 0 deletions packages/desktop-client/src/components/accounts/Header.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ export function AccountHeader({
filterId,
filtersList,
accountsSyncing,
failedAccounts,
accounts,
transactions,
showBalances,
Expand Down Expand Up @@ -165,6 +166,21 @@ export function AccountHeader({
},
}}
>
{!!account?.bank && (
<View
style={{
backgroundColor: accountsSyncing.includes(account.id)
? theme.sidebarItemBackgroundPending
: failedAccounts.has(account.id)
? theme.sidebarItemBackgroundFailed
: theme.sidebarItemBackgroundPositive,
marginRight: '4px',
width: 8,
height: 8,
borderRadius: 8,
}}
/>
)}
<View
style={{
fontSize: 25,
Expand Down

0 comments on commit 9f23e99

Please sign in to comment.