Skip to content

Commit

Permalink
Eye button fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
AdRiley committed Mar 6, 2025
1 parent 6dca056 commit d95db76
Showing 1 changed file with 1 addition and 10 deletions.
11 changes: 1 addition & 10 deletions app/gui/src/project-view/components/ActionButton.vue
Original file line number Diff line number Diff line change
Expand Up @@ -11,22 +11,13 @@ const action = computed(() =>
)
const descriptionWithShortcut = computed(() =>
action.value.shortcut ?
`${toValue(action.value.description)} (${toValue(action.value.shortcut)})`
`${toValue(action.value.description)} (${toValue(action.value.shortcut?.humanReadable)})`
: toValue(action.value.description),
)
</script>

<template>
<ToggleIcon
v-if="action.toggled != null"
:modelValue="toValue(action.toggled)"
:icon="toValue(action.icon)"
:disabled="toValue(action.disabled)"
:title="descriptionWithShortcut"
@click.stop="action.action"
/>
<SvgButton
v-else
:name="toValue(action.icon)"
:disabled="toValue(action.disabled)"
:title="descriptionWithShortcut"
Expand Down

0 comments on commit d95db76

Please sign in to comment.