Remove redundant data model
This commit is contained in:
parent
38b39a881e
commit
9cea1270c3
|
@ -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
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue