Skip to content

Commit

Permalink
fix: use tooltip as a title to show shortcut on desktop
Browse files Browse the repository at this point in the history
Signed-off-by: Grigorii K. Shartsev <[email protected]>
  • Loading branch information
ShGKme committed Jan 11, 2024
1 parent 1d0583b commit 9cfed18
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/components/Menu/ActionSingle.vue
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,7 @@ export default {
icon,
isItem,
runAction,
tooltip,
label,
} = this
Expand All @@ -106,7 +107,7 @@ export default {
const children = [h(icon, { slot: 'icon' })]
// do not use title if is a item of action list
const title = isItem ? undefined : label
const title = isItem ? undefined : tooltip
if (isItem || actionEntry.forceLabel) {
// add label
Expand Down

0 comments on commit 9cfed18

Please sign in to comment.