chore: use function statements everywhere

This commit is contained in:
kolaente 2021-12-20 18:39:01 +01:00 committed by Dominik Pschenitschni
parent 6e881fa3bc
commit c97fff86da
Signed by: dpschen
GPG Key ID: B257AC0149F43A77
1 changed files with 3 additions and 2 deletions

View File

@ -99,13 +99,14 @@ const isLocalUser = computed(() => store.state.auth.info?.isLocalUser)
const username = computed(() => store.state.auth.info?.username)
const newToken = ref(null)
const createToken = async () => {
async function createToken() {
const r = await service.create({})
tokens.value.push(r)
newToken.value = r
}
const deleteToken = async (token: CaldavTokenModel) => {
async function deleteToken(token: CaldavTokenModel) {
const r = await service.delete(token)
success(r)
const i = tokens.value.findIndex(v => v.id === token.id)