mirror of
https://github.com/Bubka/2FAuth.git
synced 2025-06-13 16:36:40 +02:00
Confirm before account delete
This commit is contained in:
parent
9e7ea7d0fb
commit
3350da4927
@ -89,6 +89,7 @@
|
||||
},
|
||||
|
||||
deleteAccount: function (id) {
|
||||
if(confirm("Are you sure you want to delete this account?")) {
|
||||
let token = localStorage.getItem('jwt')
|
||||
|
||||
axios.defaults.headers.common['Content-Type'] = 'application/json'
|
||||
@ -98,6 +99,7 @@
|
||||
this.accounts.splice(this.accounts.findIndex(x => x.id === id), 1);
|
||||
})
|
||||
}
|
||||
}
|
||||
},
|
||||
beforeRouteEnter (to, from, next) {
|
||||
if ( ! localStorage.getItem('jwt')) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user