mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2025-05-23 11:37:02 -04:00
Enhance share dialog (#860)
This commit is contained in:
parent
1c6e6e10fb
commit
721c8c0e5a
10 changed files with 120 additions and 25 deletions
|
@ -12,7 +12,7 @@ import useMedia from 'use-media'
|
|||
import { useApplyDarkMode } from '../../hooks/common/use-apply-dark-mode'
|
||||
import { useDocumentTitle } from '../../hooks/common/use-document-title'
|
||||
import { ApplicationState } from '../../redux'
|
||||
import { setDocumentContent, setNoteId } from '../../redux/document-content/methods'
|
||||
import { setDocumentContent, setDocumentMetadata, setNoteId } from '../../redux/document-content/methods'
|
||||
import { setEditorMode } from '../../redux/editor/methods'
|
||||
import { extractNoteTitle } from '../common/document-title/note-title-extractor'
|
||||
import { MotdBanner } from '../common/motd-banner/motd-banner'
|
||||
|
@ -74,6 +74,7 @@ export const Editor: React.FC = () => {
|
|||
|
||||
const onMetadataChange = useCallback((metaData: YAMLMetaData | undefined) => {
|
||||
noteMetadata.current = metaData
|
||||
setDocumentMetadata(metaData)
|
||||
updateDocumentTitle()
|
||||
}, [updateDocumentTitle])
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue