1
0
Fork 0
mirror of synced 2024-06-14 08:44:49 +12:00
This commit is contained in:
Jake Barnby 2022-09-12 15:54:55 +12:00
parent ca6ee798d6
commit 7aeedb90bf
No known key found for this signature in database
GPG key ID: C437A8CC85B96E9C
2 changed files with 8 additions and 3 deletions

View file

@ -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"

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,