This commit is contained in:
Jake Barnby
2022-09-12 15:54:55 +12:00
parent ca6ee798d6
commit 7aeedb90bf
2 changed files with 8 additions and 3 deletions
@@ -74,7 +74,8 @@ $escapedPermissions = \array_map(function ($perm) {
<input
required
id="<?php echo $form; ?>Input"
autocomplete="off"
:id="'<?php echo $form; ?>Input' + index"
name="<?php echo $form; ?>"
form="<?php echo $form ?>"
list="types"
+6 -2
View File
@@ -33,8 +33,12 @@
}
});
},
addPermission() {
this.permissions.push({ role: '' });
addPermission(formId) {
if (this.permissions.length > 0
&& !this.validate(formId, this.permissions.length - 1)) {
return;
}
this.permissions.push({role: ''});
},
updatePermission(index) {
// Because the x-model does not update before the click event,