Skip to content
Snippets Groups Projects
Unverified Commit 452ca822 authored by Joel Jeremy Marquez's avatar Joel Jeremy Marquez Committed by GitHub
Browse files

Use budget name as export file name (#2713)

* Use budget name as export file name

* Release notes
parent ffddd9e8
No related branches found
No related tags found
No related merge requests found
......@@ -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);
......
---
category: Enhancements
authors: [joel-jeremy]
---
Use budget name as export file name.
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment