A local-first personal finance app
:sparkles: show the 'import transactions' button even if accounts have banksync (#3615)
Matiss Janis Aboltins79f640cbc011
diff --git a/packages/desktop-client/src/components/accounts/Header.jsx b/packages/desktop-client/src/components/accounts/Header.jsxindex f8aa6b492d..ac386433cf 100644--- a/packages/desktop-client/src/components/accounts/Header.jsx+++ b/packages/desktop-client/src/components/accounts/Header.jsx@@ -287,38 +287,37 @@ export function AccountHeader({align="center"style={{ marginTop: 12 }}>- {((account && !account.closed) || canSync) && (+ {canSync && (<Buttonvariant="bare"- onPress={canSync ? onSync : onImport}- isDisabled={canSync && isServerOffline}+ onPress={onSync}+ isDisabled={isServerOffline}>- {canSync ? (- <>- <AnimatedRefresh- width={13}- height={13}- animating={- account- ? accountsSyncing.includes(account.id)- : accountsSyncing.length > 0- }- style={{ marginRight: 4 }}- />{' '}- {isServerOffline ? t('Bank Sync Offline') : t('Bank Sync')}- </>- ) : (- <>- <SvgDownloadThickBottom- width={13}- height={13}- style={{ marginRight: 4 }}- />{' '}- <Trans>Import</Trans>- </>- )}+ <AnimatedRefresh+ width={13}+ height={13}+ animating={+ account+ ? accountsSyncing.includes(account.id)+ : accountsSyncing.length > 0+ }+ style={{ marginRight: 4 }}+ />{' '}+ {isServerOffline ? t('Bank Sync Offline') : t('Bank Sync')}+ </Button>+ )}++ {account && !account.closed && (+ <Button variant="bare" onPress={onImport}>+ <SvgDownloadThickBottom+ width={13}+ height={13}+ style={{ marginRight: 4 }}+ />{' '}+ <Trans>Import</Trans></Button>)}+{!showEmptyMessage && (<Button variant="bare" onPress={onAddTransaction}><SvgAdd width={10} height={10} style={{ marginRight: 3 }} />diff --git a/upcoming-release-notes/3615.md b/upcoming-release-notes/3615.mdnew file mode 100644index 0000000000..11b8af7ed3--- /dev/null+++ b/upcoming-release-notes/3615.md@@ -0,0 +1,6 @@+---+category: Enhancements+authors: [MatissJanis]+---++Show the "import transactions" button even if accounts have bank-sync enabled.