Skip to content

Commit

Permalink
Merge pull request #531 from Moggeh/patch-1
Browse files Browse the repository at this point in the history
Use on context menu shows up only on useable items
  • Loading branch information
GhzGarage authored Jun 9, 2024
2 parents b89806c + d7117c4 commit 00a092e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion html/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@
</div>
</div>
<ul v-if="showContextMenu" class="context-menu" :style="{ top: contextMenuPosition.top, left: contextMenuPosition.left }">
<li @click="useItem(contextMenuItem)">Use</li>
<li v-if="contextMenuItem.useable" @click="useItem(contextMenuItem)">Use</li>
<li @mouseover="showSubmenu = true" @mouseleave="showSubmenu = false">
Give
<ul v-if="showSubmenu" class="submenu">
Expand Down

0 comments on commit 00a092e

Please sign in to comment.