feat: manage caldav tokens [addition] #1307

Merged
konrad merged 24 commits from dpschen/frontend:feature/caldav-tokens into main 2022-04-02 15:51:44 +00:00
1 changed files with 2 additions and 3 deletions
Showing only changes of commit 343be4d5d6 - Show all commits

View File

@ -101,9 +101,8 @@ const username = computed(() => store.state.auth.info?.username)
const newToken = ref(null)
async function createToken() {
const r = await service.create({})
tokens.value.push(r)
newToken.value = r
newToken.value = await service.create({})
tokens.value.push(newToken.value)
}
dpschen marked this conversation as resolved Outdated

I reused the username computed here

I reused the `username` computed here
async function deleteToken(token: CaldavTokenModel) {