From 6f165da1a1c67a00389b49a1574addb5f15061ae Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rodolphe=20Br=C3=A9ard?= Date: Sun, 30 Jul 2023 16:54:01 +0200 Subject: [PATCH] Allow to delete an account --- src/views/MainView.vue | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/views/MainView.vue b/src/views/MainView.vue index 969fcc4..a0414ff 100644 --- a/src/views/MainView.vue +++ b/src/views/MainView.vue @@ -37,7 +37,10 @@ const generatedAddr = computed(() => { } return ''; }); - +const deleteAccount = () => { + accounts.value = accounts.value.filter((e) => e.id !== selectedAccountId.value); + selectedAccountId.value = accounts.value[0].id; +}; const copyAddr = () => { navigator.clipboard.writeText(generatedAddr.value); }; @@ -55,7 +58,7 @@ const copyAddr = () => {

- Delete + Delete

New