chore: move success message after state changes

This commit is contained in:
kolaente
2022-04-02 17:37:51 +02:00
parent ca330fe63b
commit da4f5a0f75
+1 -1
View File
@@ -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>