Skip to content

Commit 00f687f

Browse files
committed
feat: add context menu options for opening items in new tab
- Introduced a context menu in the drawer component with options to open items in the current tab and in a new tab. - Enhanced user interaction by allowing quick access to menu items through the new context menu functionality.
1 parent ff14dfa commit 00f687f

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

apps/web/src/components/layouts/default/drawer.vue

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,16 @@ div
77
q-item(to="/" clickable v-ripple)
88
q-item-section(avatar)
99
q-icon(name="mdi-home")
10+
q-popup-proxy(context-menu :offset="[0, 10]")
11+
q-list(dense)
12+
q-item(clickable v-ripple @click.stop.prevent="openMenu({ path: '/' })")
13+
q-item-section(avatar)
14+
q-icon(name="mdi-open-in-app" color="primary")
15+
q-item-section Ouvrir
16+
q-item(clickable v-ripple @click.stop.prevent="openMenuNewTab({ path: '/' })")
17+
q-item-section(avatar)
18+
q-icon(name="mdi-open-in-new" color="primary")
19+
q-item-section Ouvrir dans un nouvel onglet
1020
q-separator
1121
q-list(v-for="(part, i) in visibleMenuParts" :key="part.label")
1222
div(v-for="menu in part.menus" :key="menu.path")

0 commit comments

Comments
 (0)