Skip to content

Commit

Permalink
Fix functionality to hide back button when configuration is set (#2852)
Browse files Browse the repository at this point in the history
In version 5, the option to hide the back button functioned correctly,
ensuring the button was not displayed when configured to be hidden.
However, this behaviour regressed in the new UI. This commit reinstates
the original functionality, ensuring the back button is properly hidden
when the corresponding option is enabled.
  • Loading branch information
kiancross authored Dec 27, 2024
1 parent 148ec74 commit ccc3495
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion resources/js/components/headers/BackLinkButton.vue
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
<template>
<Button as="a" :href="props.config.back_button_url" severity="secondary" text class="border-none">
<Button
as="a"
:href="props.config.back_button_url"
severity="secondary"
text
class="border-none"
:class="props.config.back_button_enabled ? '' : 'hidden'"
>
<i class="pi pi-home sm:hidden" />
<span class="hidden sm:inline">{{ props.config.back_button_text }}</span>
</Button>
Expand Down

0 comments on commit ccc3495

Please sign in to comment.