Skip to content

Commit

Permalink
Fix perms js error
Browse files Browse the repository at this point in the history
  • Loading branch information
V13Axel committed Mar 21, 2024
1 parent 5b650a5 commit 8e226c5
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion resources/views/inputs/sidebar/view.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,10 @@
@endcan


<div class='date_control preview_date_controls mx-3 mt-3' :class="{ 'd-flex flex-column': activeDateAdjustment === 'preview', 'd-none': activeDateAdjustment !== 'preview' || (!Perms.player_at_least('co-owner') && !static_data.settings.allow_view) }">
<div class='date_control preview_date_controls mx-3 mt-3' :class="{
'd-flex flex-column': activeDateAdjustment === 'preview',
'd-none': activeDateAdjustment !== 'preview' || !shouldShow
}">
<div class='input-group protip mt-2' value='target' data-pt-position='right' data-pt-title="The preview year">
<div class='input-group-prepend'>
<button type='button' class='btn btn-danger sub_year' id='sub_target_year'><i class="icon-minus"></i></button>
Expand Down

0 comments on commit 8e226c5

Please sign in to comment.