Fix cookie in Upload form and fix download name

This commit is contained in:
Aj - Thomas
2022-05-12 22:11:28 +02:00
parent 98e4da5a3b
commit 84b7d4bbdc
2 changed files with 10 additions and 3 deletions

View File

@@ -7,7 +7,7 @@ export default function SaveConfigComponent(props: any) {
const { config } = useConfig();
function onClick(e: any) {
if (config) {
fileDownload(JSON.stringify(config, null, '\t'), 'config.json');
fileDownload(JSON.stringify(config, null, '\t'), `${config.name}.json`);
}
}
return (