Skip to content

Open source personal finance application

fix(wallets): drop redundant Open from context menu on list and sidebar

Ilya Komichev00c9b2b88112
diff --git a/app/app/components/layout/Sidebar.vue b/app/app/components/layout/Sidebar.vue
index 0dbd6004..7089c676 100644
--- a/app/app/components/layout/Sidebar.vue
+++ b/app/app/components/layout/Sidebar.vue
@@ -21,7 +21,7 @@ const walletsStore = useWalletsStore()
const categoriesStore = useCategoriesStore()
const isShowLogoMenu = ref(false)
-const { getWalletContextMenuItems } = useWalletContextMenu({ withCreditView: true })
+const { getWalletContextMenuItems } = useWalletContextMenu({ excludeOpen: true, withCreditView: true })
type SidebarTab = 'categories' | 'wallets'
const activeTab = ref<SidebarTab>('wallets')
diff --git a/app/app/components/wallets/page/ListItem.vue b/app/app/components/wallets/page/ListItem.vue
index aae1df9f..f1954bdb 100644
--- a/app/app/components/wallets/page/ListItem.vue
+++ b/app/app/components/wallets/page/ListItem.vue
@@ -15,6 +15,7 @@ const emit = defineEmits<{
const walletsStore = useWalletsStore()
const { getWalletContextMenuItems } = useWalletContextMenu({
+ excludeOpen: true,
onDelete: (id: WalletId) => emit('delete', id),
withCreditView: true,
})