mirror of
https://github.com/appwrite/appwrite.git
synced 2026-05-26 13:51:13 +00:00
Bind ID
This commit is contained in:
@@ -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"
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user