update active note
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
<script setup lang="ts">
|
||||
import { activeNote } from '@/composables/useNotes'
|
||||
import { setActiveNote } from '@/composables/useNotes'
|
||||
const props = defineProps<{
|
||||
references: Note[]
|
||||
}>()
|
||||
@@ -15,7 +15,7 @@ const props = defineProps<{
|
||||
</span>
|
||||
</li>
|
||||
<li v-for="reference in props.references">
|
||||
<a class="rounded-md" @click="activeNote = reference">
|
||||
<a class="rounded-md" @click="setActiveNote(reference.id)">
|
||||
<i class="far fa-file-alt fa-fw" />
|
||||
{{ reference.title }}
|
||||
</a>
|
||||
|
||||
Reference in New Issue
Block a user