mirror of
https://github.com/BookStackApp/BookStack.git
synced 2025-04-30 22:50:05 +00:00
Fixed : Comment notification settings are visible even if comments are disabled
Added a UX condition to display comment notification settings, only if the user has enabled the comment notifications.
This commit is contained in:
parent
dfaf6f7c13
commit
6a5361d853
1 changed files with 16 additions and 14 deletions
|
@ -20,20 +20,22 @@
|
||||||
'label' => trans('preferences.notifications_opt_own_page_changes'),
|
'label' => trans('preferences.notifications_opt_own_page_changes'),
|
||||||
])
|
])
|
||||||
</div>
|
</div>
|
||||||
<div>
|
@if (!setting('app-disable-comments'))
|
||||||
@include('form.toggle-switch', [
|
<div>
|
||||||
'name' => 'preferences[own-page-comments]',
|
@include('form.toggle-switch', [
|
||||||
'value' => $preferences->notifyOnOwnPageComments(),
|
'name' => 'preferences[own-page-comments]',
|
||||||
'label' => trans('preferences.notifications_opt_own_page_comments'),
|
'value' => $preferences->notifyOnOwnPageComments(),
|
||||||
])
|
'label' => trans('preferences.notifications_opt_own_page_comments'),
|
||||||
</div>
|
])
|
||||||
<div>
|
</div>
|
||||||
@include('form.toggle-switch', [
|
<div>
|
||||||
'name' => 'preferences[comment-replies]',
|
@include('form.toggle-switch', [
|
||||||
'value' => $preferences->notifyOnCommentReplies(),
|
'name' => 'preferences[comment-replies]',
|
||||||
'label' => trans('preferences.notifications_opt_comment_replies'),
|
'value' => $preferences->notifyOnCommentReplies(),
|
||||||
])
|
'label' => trans('preferences.notifications_opt_comment_replies'),
|
||||||
</div>
|
])
|
||||||
|
</div>
|
||||||
|
@endif
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="mt-auto">
|
<div class="mt-auto">
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue