chore: move success message after state changes
This commit is contained in:
parent
ca330fe63b
commit
da4f5a0f75
1 changed files with 1 additions and 1 deletions
|
@ -108,11 +108,11 @@ async function createToken() {
|
|||
|
||||
async function deleteToken(token: CaldavTokenModel) {
|
||||
const r = await service.delete(token)
|
||||
success(r)
|
||||
const i = tokens.value.findIndex(v => v.id === token.id)
|
||||
if (i === -1) {
|
||||
return
|
||||
}
|
||||
tokens.value.splice(i, 1)
|
||||
success(r)
|
||||
}
|
||||
</script>
|
||||
|
|
Loading…
Reference in a new issue