Remove redundant data model

This commit is contained in:
Jake Barnby
2022-09-13 16:12:47 +12:00
parent 38b39a881e
commit 9cea1270c3
2 changed files with 1 additions and 12 deletions
@@ -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
-11
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);