diff --git a/src/scripts/documentActions/copyDocument.ts b/src/scripts/documentActions/copyDocument.ts index 7a7f99a..cfac6f9 100644 --- a/src/scripts/documentActions/copyDocument.ts +++ b/src/scripts/documentActions/copyDocument.ts @@ -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") diff --git a/suggestionList.md b/suggestionList.md index 0d58e73..42fedec 100644 --- a/suggestionList.md +++ b/suggestionList.md @@ -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