Change export file name to include title
This commit is contained in:
parent
079229b268
commit
c507d5106d
@ -113,7 +113,7 @@ export default function ControlPanel({
|
||||
const [showEditName, setShowEditName] = useState(false);
|
||||
const [exportData, setExportData] = useState({
|
||||
data: null,
|
||||
filename: `diagram_${new Date().toISOString()}`,
|
||||
filename: `${title}_${new Date().toISOString()}`,
|
||||
extension: "",
|
||||
});
|
||||
const [error, setError] = useState({
|
||||
@ -1995,7 +1995,7 @@ export default function ControlPanel({
|
||||
setExportData(() => ({
|
||||
data: "",
|
||||
extension: "",
|
||||
filename: `diagram_${new Date().toISOString()}`,
|
||||
filename: `${title}_${new Date().toISOString()}`,
|
||||
}));
|
||||
setError({
|
||||
type: STATUS.NONE,
|
||||
|
Loading…
Reference in New Issue
Block a user