diff options
Diffstat (limited to 'src/components/NavigationCategoriesItem.vue')
-rw-r--r-- | src/components/NavigationCategoriesItem.vue | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/src/components/NavigationCategoriesItem.vue b/src/components/NavigationCategoriesItem.vue index c40cd1aa..013a3aa2 100644 --- a/src/components/NavigationCategoriesItem.vue +++ b/src/components/NavigationCategoriesItem.vue @@ -38,7 +38,9 @@ import { AppNavigationItem, AppNavigationCounter, } from '@nextcloud/vue' -import NotesService from '../NotesService' + +import { getCategories, categoryLabel } from '../NotesService' + import store from '../store' export default { @@ -68,17 +70,17 @@ export default { }, categories() { - return NotesService.getCategories(1, true) + return getCategories(1, true) }, title() { - return this.selectedCategory === null ? this.t('notes', 'Categories') : NotesService.categoryLabel(this.selectedCategory) + return this.selectedCategory === null ? this.t('notes', 'Categories') : categoryLabel(this.selectedCategory) }, }, methods: { categoryTitle(category) { - return NotesService.categoryLabel(category) + return categoryLabel(category) }, onToggleCategories() { |