Migrate bookmark folders state to pinia store
This commit is contained in:
parent
9e2086edaf
commit
bc0b13ac0d
11 changed files with 77 additions and 84 deletions
|
|
@ -11,6 +11,7 @@ import {
|
|||
} from '@fortawesome/free-solid-svg-icons'
|
||||
import { useInterfaceStore } from 'src/stores/interface'
|
||||
import { useListsStore } from 'src/stores/lists'
|
||||
import { useBookmarkFoldersStore } from 'src/stores/bookmark_folders'
|
||||
|
||||
library.add(faChevronDown)
|
||||
|
||||
|
|
@ -100,7 +101,7 @@ const TimelineMenu = {
|
|||
return useListsStore().findListTitle(this.$route.params.id)
|
||||
}
|
||||
if (route === 'bookmark-folder') {
|
||||
return this.$store.getters.findBookmarkFolderName(this.$route.params.id)
|
||||
return useBookmarkFoldersStore().findBookmarkFolderName(this.$route.params.id)
|
||||
}
|
||||
const i18nkey = timelineNames(this.bookmarkFolders)[this.$route.name]
|
||||
return i18nkey ? this.$t(i18nkey) : route
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue