Skip to content

Commit acaa3a2

Browse files
authored
Merge pull request #16410 from snipe/#16407_component_checkout_and_notes_fix
Fixed #16407 - weird layout on components for non super user
2 parents e19003a + c472289 commit acaa3a2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

resources/views/components/view.blade.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,7 @@ class="table table-striped snipe-table"
199199
<div class="col-md-12">
200200
{!! nl2br(Helper::parseEscapedMarkedownInline($component->notes)) !!}
201201
</div>
202-
</div>
202+
203203
@endif
204204

205205
@can('update', $component)
@@ -211,7 +211,7 @@ class="table table-striped snipe-table"
211211
</div>
212212
@endcan
213213

214-
@can('checkout', Component::class)
214+
@can('checkout', $component)
215215
<div class="col-md-12 hidden-print" style="padding-top: 5px;">
216216
<a href="{{ route('components.checkout.show', $component->id) }}" class="btn btn-sm bg-maroon btn-social btn-block hidden-print">
217217
<x-icon type="checkout" />

0 commit comments

Comments
 (0)