Skip to content

Commit ccc3495

Browse files
authored
Fix functionality to hide back button when configuration is set (#2852)
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.
1 parent 148ec74 commit ccc3495

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

resources/js/components/headers/BackLinkButton.vue

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,12 @@
11
<template>
2-
<Button as="a" :href="props.config.back_button_url" severity="secondary" text class="border-none">
2+
<Button
3+
as="a"
4+
:href="props.config.back_button_url"
5+
severity="secondary"
6+
text
7+
class="border-none"
8+
:class="props.config.back_button_enabled ? '' : 'hidden'"
9+
>
310
<i class="pi pi-home sm:hidden" />
411
<span class="hidden sm:inline">{{ props.config.back_button_text }}</span>
512
</Button>

0 commit comments

Comments
 (0)