Add a confirmation prompt before deleting an account

This commit is contained in:
Rodolphe Bréard 2023-07-30 18:37:59 +02:00
parent 30d5748f84
commit 8555da8913
4 changed files with 40 additions and 3 deletions

View file

@ -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,
},
]
});