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
|
@ -20,6 +20,7 @@
|
||||||
'label' => trans('preferences.notifications_opt_own_page_changes'),
|
'label' => trans('preferences.notifications_opt_own_page_changes'),
|
||||||
])
|
])
|
||||||
</div>
|
</div>
|
||||||
|
@if (!setting('app-disable-comments'))
|
||||||
<div>
|
<div>
|
||||||
@include('form.toggle-switch', [
|
@include('form.toggle-switch', [
|
||||||
'name' => 'preferences[own-page-comments]',
|
'name' => 'preferences[own-page-comments]',
|
||||||
|
@ -34,6 +35,7 @@
|
||||||
'label' => trans('preferences.notifications_opt_comment_replies'),
|
'label' => trans('preferences.notifications_opt_comment_replies'),
|
||||||
])
|
])
|
||||||
</div>
|
</div>
|
||||||
|
@endif
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="mt-auto">
|
<div class="mt-auto">
|
||||||
|
|
Loading…
Reference in New Issue