compute note backlinks

This commit is contained in:
Julien Calixte
2021-06-06 09:57:17 +02:00
parent 203db4c00a
commit 4f13c18573
11 changed files with 122 additions and 24 deletions

View File

@@ -35,6 +35,7 @@ import { useNoteOverlay } from '@/hooks/useNoteOverlay.hook'
import { useFocus } from '@/hooks/useFocus.hook'
import { useImages } from '@/hooks/useImages.hook'
import LinkedNotes from '@/components/LinkedNotes.vue'
import { filenameToNoteTitle } from '@/utils/noteTitle'
export default defineComponent({
name: 'StackedNote',
@@ -56,7 +57,7 @@ export default defineComponent({
const titleClassName = computed(() => `title-${className.value}`)
const { displayNoteOverlay } = useNoteOverlay(className.value, props.index)
const displayedTitle = computed(() => props.title.replaceAll('/', ' / '))
const displayedTitle = computed(() => filenameToNoteTitle(props.title))
watch(content, () => {
if (content.value) {