mirror of
https://github.com/actualbudget/actual.git
synced 2026-03-11 20:44:32 -05:00
✨ (dashboards) making "all widget" button always visible (#3588)
This commit is contained in:
committed by
GitHub
parent
5369494925
commit
bdeb19424b
@@ -351,7 +351,7 @@ export function Overview() {
|
||||
>
|
||||
{currentBreakpoint === 'desktop' && (
|
||||
<>
|
||||
{isEditing ? (
|
||||
{isDashboardsFeatureEnabled && (
|
||||
<>
|
||||
<Button
|
||||
ref={triggerRef}
|
||||
@@ -361,12 +361,6 @@ export function Overview() {
|
||||
>
|
||||
<Trans>Add new widget</Trans>
|
||||
</Button>
|
||||
<Button
|
||||
isDisabled={isImporting}
|
||||
onPress={() => setIsEditing(false)}
|
||||
>
|
||||
<Trans>Finish editing dashboard</Trans>
|
||||
</Button>
|
||||
|
||||
<Popover
|
||||
triggerRef={triggerRef}
|
||||
@@ -440,24 +434,30 @@ export function Overview() {
|
||||
/>
|
||||
</Popover>
|
||||
</>
|
||||
)}
|
||||
|
||||
{isEditing ? (
|
||||
<Button
|
||||
isDisabled={isImporting}
|
||||
onPress={() => setIsEditing(false)}
|
||||
>
|
||||
<Trans>Finish editing dashboard</Trans>
|
||||
</Button>
|
||||
) : isDashboardsFeatureEnabled ? (
|
||||
<Button
|
||||
isDisabled={isImporting}
|
||||
onPress={() => setIsEditing(true)}
|
||||
>
|
||||
<Trans>Edit dashboard</Trans>
|
||||
</Button>
|
||||
) : (
|
||||
<>
|
||||
<Button
|
||||
variant="primary"
|
||||
isDisabled={isImporting}
|
||||
onPress={() => navigate('/reports/custom')}
|
||||
>
|
||||
<Trans>Create new custom report</Trans>
|
||||
</Button>
|
||||
{isDashboardsFeatureEnabled && (
|
||||
<Button
|
||||
isDisabled={isImporting}
|
||||
onPress={() => setIsEditing(true)}
|
||||
>
|
||||
<Trans>Edit dashboard</Trans>
|
||||
</Button>
|
||||
)}
|
||||
</>
|
||||
<Button
|
||||
variant="primary"
|
||||
isDisabled={isImporting}
|
||||
onPress={() => navigate('/reports/custom')}
|
||||
>
|
||||
<Trans>Create new custom report</Trans>
|
||||
</Button>
|
||||
)}
|
||||
|
||||
{isDashboardsFeatureEnabled && (
|
||||
|
||||
6
upcoming-release-notes/3588.md
Normal file
6
upcoming-release-notes/3588.md
Normal file
@@ -0,0 +1,6 @@
|
||||
---
|
||||
category: Enhancements
|
||||
authors: [MatissJanis]
|
||||
---
|
||||
|
||||
Dashboards: make "add widgets" button always visible.
|
||||
Reference in New Issue
Block a user