chore: use function statements everywhere
continuous-integration/drone/pr Build is passing Details

This commit is contained in:
kolaente 2021-12-20 18:39:01 +01:00
parent 5106be028c
commit 2d71897581
Signed by: konrad
GPG Key ID: F40E70337AB24C9B
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)