A local-first personal finance app
Use budget name as export file name (#2713)
Joel Jeremy Marquez452ca8228774
diff --git a/packages/desktop-client/src/components/settings/Export.tsx b/packages/desktop-client/src/components/settings/Export.tsxindex 790db44dfd..b61f5d724a 100644--- a/packages/desktop-client/src/components/settings/Export.tsx+++ b/packages/desktop-client/src/components/settings/Export.tsx@@ -15,7 +15,7 @@ import { Setting } from './UI';export function ExportBudget() {const [isLoading, setIsLoading] = useState(false);const [error, setError] = useState<string | null>(null);- const [budgetId] = useLocalPref('id');+ const [budgetName] = useLocalPref('budgetName');const [encryptKeyId] = useLocalPref('encryptKeyId');async function onExport() {@@ -33,7 +33,7 @@ export function ExportBudget() {window.Actual?.saveFile(response.data,- `${format(new Date(), 'yyyy-MM-dd')}-${budgetId}.zip`,+ `${format(new Date(), 'yyyy-MM-dd')}-${budgetName}.zip`,'Export budget',);setIsLoading(false);diff --git a/upcoming-release-notes/2713.md b/upcoming-release-notes/2713.mdnew file mode 100644index 0000000000..6372e306a1--- /dev/null+++ b/upcoming-release-notes/2713.md@@ -0,0 +1,6 @@+---+category: Enhancements+authors: [joel-jeremy]+---++Use budget name as export file name.