0.1.5 - RC6 - hotfix with document copy from the hierarchy tree

This commit is contained in:
Elvanos 2021-04-18 02:08:06 +02:00
parent 206762d3c6
commit 04a2643f90
2 changed files with 28 additions and 1 deletions

View file

@ -7,6 +7,30 @@ export const copyDocument = (currentDoc: I_OpenedDocument, newDocumentID: string
currentDoc.hasEdits = false
currentDoc.url = `/project/display-content/${currentDoc.type}/${newDocumentID}`
// @ts-ignore
if (currentDoc.key) {
// @ts-ignore
delete (currentDoc.key)
}
// @ts-ignore
if (currentDoc.handler) {
// @ts-ignore
delete (currentDoc.handler)
}
// @ts-ignore
if (currentDoc.children) {
// @ts-ignore
delete (currentDoc.children)
}
// @ts-ignore
if (currentDoc.sticker) {
// @ts-ignore
delete (currentDoc.sticker)
}
delete (currentDoc._rev)
const documentNameIndex = currentDoc.extraFields.findIndex(e => e.id === "name")

View file

@ -10,12 +10,15 @@
## THE GM BATCH END
- Add option for project graph to filter out categories or show them separately
- Add HTML webcolor cheatsheet in floating window (look for JSON of them somewhere?)
- Word count for editor fields
- Add "Open app folder" to help menu
- Try to get field titles to show in full-screen edit of text editor fields
- Consider reworking the save document mechanic (save doesnt close, open/exit edit mode instead)
- Add color support (text and background) to view and edit mode of document display
- Add a toggle option for it (default off)
- Mass tag rename/deletion (done via document saving!)
- Context menu for tags
@ -53,10 +56,10 @@
- Tag management (coloring)
- Simple data imports (maybe?)
- Dynamic table field
- Settings search
- Vanity project-wide word count (lol...)
- Add on-the-fly generation of non-existent 2-way relationships
- Automatic thumbnail generation AND re-checking based on date