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) {
|
async function deleteToken(token: CaldavTokenModel) {
|
||||||
const r = await service.delete(token)
|
const r = await service.delete(token)
|
||||||
success(r)
|
|
||||||
const i = tokens.value.findIndex(v => v.id === token.id)
|
const i = tokens.value.findIndex(v => v.id === token.id)
|
||||||
if (i === -1) {
|
if (i === -1) {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
tokens.value.splice(i, 1)
|
tokens.value.splice(i, 1)
|
||||||
|
success(r)
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
Loading…
Reference in a new issue