mirror of
https://github.com/drawdb-io/drawdb.git
synced 2026-02-12 02:00:40 +08:00
Add title to json and ddb export
This commit is contained in:
@@ -163,6 +163,9 @@ export default function ControlPanel({
|
||||
setRelationships(data.relationships);
|
||||
setAreas(data.subjectAreas);
|
||||
setNotes(data.notes);
|
||||
if (data.title) {
|
||||
setTitle(data.title);
|
||||
}
|
||||
};
|
||||
|
||||
const undo = () => {
|
||||
@@ -880,6 +883,7 @@ export default function ControlPanel({
|
||||
notes: notes,
|
||||
subjectAreas: areas,
|
||||
types: types,
|
||||
title: title,
|
||||
},
|
||||
null,
|
||||
2
|
||||
@@ -931,7 +935,7 @@ export default function ControlPanel({
|
||||
const result = JSON.stringify(
|
||||
{
|
||||
author: "Unnamed",
|
||||
filename: title,
|
||||
title: title,
|
||||
date: new Date().toISOString(),
|
||||
tables: tables,
|
||||
relationships: relationships,
|
||||
|
||||
Reference in New Issue
Block a user