1
0
Fork 0
mirror of synced 2024-06-14 00:34:51 +12:00

Remove redundant data model

This commit is contained in:
Jake Barnby 2022-09-13 16:12:47 +12:00
parent 38b39a881e
commit 9cea1270c3
No known key found for this signature in database
GPG key ID: C437A8CC85B96E9C
2 changed files with 1 additions and 12 deletions

View file

@ -70,7 +70,7 @@ $escapedPermissions = \array_map(function ($perm) {
</thead>
<tbody>
<template x-for="(permission, index) in permissions">
<tr x-data="permissionsRow">
<tr>
<td>
<input
required

View file

@ -118,16 +118,5 @@
event.stopPropagation();
}
}));
Alpine.data('permissionsRow', () => ({
role: '',
read: false,
create: false,
update: false,
xdelete: false,
reset() {
this.role = '';
this.read = this.create = this.update = this.xdelete = false;
}
}));
});
})(window);