style: rename hook for the global usage
This commit is contained in:
@@ -5,7 +5,7 @@ import { prepareNoteCache } from '@/modules/note/cache/prepareNoteCache'
|
||||
import { queryFileContent } from '@/modules/repo/services/repo'
|
||||
import { useUserRepoStore } from '@/modules/repo/store/userRepo.store'
|
||||
|
||||
export const useOfflineNote = () => {
|
||||
export const useOfflineNotes = () => {
|
||||
const store = useUserRepoStore()
|
||||
const totalOfNotes = computed(() => store.files.length)
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
<script setup lang="ts">
|
||||
import { useOfflineNote } from '@/hooks/useOfflineNote.hook'
|
||||
import { useOfflineNotes } from '@/hooks/useOfflineNotes.hook'
|
||||
|
||||
const { cacheAllNotes, isLoading, totalOfNotes, noteCompleted } =
|
||||
useOfflineNote()
|
||||
useOfflineNotes()
|
||||
|
||||
const confirmBeforeCachingAllNotes = () => {
|
||||
confirm('Do you want to cache all notes?')
|
||||
|
||||
Reference in New Issue
Block a user