feat: add logos editor
This commit is contained in:
@@ -64,6 +64,7 @@ import {
|
||||
RECOLLECTION_FILE_EXT,
|
||||
RECOLLECTION_VERSION,
|
||||
} from './recollectionGraphStorage'
|
||||
import { getLogosContent, setLogosContent } from './recollectionStore'
|
||||
import { toast } from 'sonner'
|
||||
import { NewRecollectionDialog } from '@/app/kosmos/NewRecollectionDialog'
|
||||
import { RecollectionsPageBackground } from './RecollectionsPageBackground'
|
||||
@@ -419,6 +420,10 @@ export function RecollectionsPage() {
|
||||
if (graph && (graph.nodes.length > 0 || graph.edges.length > 0)) {
|
||||
saveGraphToStorage(newId, { version: RECOLLECTION_VERSION, nodes: graph.nodes, edges: graph.edges })
|
||||
}
|
||||
const logosContent = getLogosContent(duplicateTarget.id)
|
||||
if (logosContent && logosContent.length > 0) {
|
||||
setLogosContent(newId, logosContent)
|
||||
}
|
||||
toast.success('Recollection duplicated')
|
||||
setDuplicateTarget(null)
|
||||
setDuplicateName('')
|
||||
|
||||
Reference in New Issue
Block a user