chore: rename to useTokens

This commit is contained in:
kolaente 2021-12-26 11:43:15 +01:00
parent 460a4dbdbe
commit b9fa08116d
No known key found for this signature in database
GPG key ID: F40E70337AB24C9B

View file

@ -80,13 +80,13 @@ import CaldavTokenModel from '@/models/caldavToken'
const service = new CaldavTokenService()
async function useToken(): ref<CaldavTokenModel[]> {
async function useTokens(): ref<CaldavTokenModel[]> {
const tokens = ref<CaldavTokenModel[]>([])
tokens.value = await service.getAll()
return tokens
}
const tokens = useToken()
const tokens = useTokens()
const store = useStore()
const {t} = useI18n()