1
0
Fork 0
mirror of synced 2024-09-30 17:26:48 +13:00

Hide header when if no permissions present

This commit is contained in:
Jake Barnby 2022-09-12 14:04:05 +12:00
parent d6fa54bd1e
commit 1a1f33ef57
No known key found for this signature in database
GPG key ID: C437A8CC85B96E9C

View file

@ -46,8 +46,11 @@ $escapedPermissions = \array_map(function ($perm) {
<?php endif; ?>
:value="rawPermissions"/>
<table class="u-table-layout-normal" data-ls-attrs="x-init=load({{<?php if (!empty($data)) echo $data . '.$permissions' ?>}})">
<thead>
<table
class="u-table-layout-normal"
data-ls-attrs="x-init=load({{<?php if (!empty($data)) echo $data . '.$permissions' ?>}})">
<thead x-show="permissions.length > 0">
<tr>
<th>Role</th>
<?php foreach ($permissions as $permission): ?>