Add a confirmation prompt before deleting an account
This commit is contained in:
parent
30d5748f84
commit
8555da8913
4 changed files with 40 additions and 3 deletions
|
@ -3,6 +3,7 @@ import { useStorage } from '@vueuse/core'
|
|||
|
||||
import MainView from '../views/MainView.vue';
|
||||
import AddAccountView from '../views/AddAccountView.vue';
|
||||
import DeleteAccountView from '../views/DeleteAccountView.vue';
|
||||
|
||||
const accounts = useStorage('sake-accounts', []);
|
||||
const router = createRouter({
|
||||
|
@ -21,6 +22,10 @@ const router = createRouter({
|
|||
path: '/add-account',
|
||||
component: AddAccountView
|
||||
},
|
||||
{
|
||||
path: '/delete-account/:id',
|
||||
component: DeleteAccountView,
|
||||
},
|
||||
]
|
||||
});
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue