A local-first personal finance app
automations UI: grey out icon when source isn't UI (#7909)
Matt Fiddaman2dcbc88b3533
diff --git a/packages/desktop-client/src/components/budget/goals/CategoryAutomationButton.tsx b/packages/desktop-client/src/components/budget/goals/CategoryAutomationButton.tsxindex a31cfd0248..044f8954ac 100644--- a/packages/desktop-client/src/components/budget/goals/CategoryAutomationButton.tsx+++ b/packages/desktop-client/src/components/budget/goals/CategoryAutomationButton.tsx@@ -39,7 +39,8 @@ export function CategoryAutomationButton({const goalTemplatesUIEnabled = useFeatureFlag('goalTemplatesUIEnabled');const [budgetType = 'envelope'] = useSyncedPref('budgetType');const hasAutomations =- !!category.goal_def?.length || !!category.cleanup_def?.length;+ category.template_settings?.source === 'ui' &&+ (!!category.goal_def?.length || !!category.cleanup_def?.length);if (!goalTemplatesEnabled || !goalTemplatesUIEnabled) {return null;diff --git a/upcoming-release-notes/7909.md b/upcoming-release-notes/7909.mdnew file mode 100644index 0000000000..8f3ee7e480--- /dev/null+++ b/upcoming-release-notes/7909.md@@ -0,0 +1,6 @@+---+category: Bugfixes+authors: [matt-fidd]+---++Automations UI: gray out the icon when the UI isn't the active source