mirror of
https://github.com/appwrite/console.git
synced 2026-06-06 19:27:48 +00:00
Merge branch 'users' of github.com:appwrite/appwrite-console-poc into storage
This commit is contained in:
@@ -15,9 +15,10 @@
|
||||
|
||||
const create = async () => {
|
||||
try {
|
||||
const team = await sdkForProject.teams.create(id ? id : 'unique()', name);
|
||||
const team = await sdkForProject.teams.create(id ?? 'unique()', name);
|
||||
name = '';
|
||||
showCreate = false;
|
||||
showDropdown = false;
|
||||
dispatch('created', team);
|
||||
} catch (error) {
|
||||
addNotification({
|
||||
@@ -26,6 +27,10 @@
|
||||
});
|
||||
}
|
||||
};
|
||||
|
||||
$: if (!showDropdown) {
|
||||
id = null;
|
||||
}
|
||||
</script>
|
||||
|
||||
<Form on:submit={create}>
|
||||
|
||||
@@ -22,9 +22,10 @@
|
||||
|
||||
const create = async () => {
|
||||
try {
|
||||
const user = await sdkForProject.users.create(id ? id : 'unique()', mail, pass, name);
|
||||
const user = await sdkForProject.users.create(id ?? 'unique()', mail, pass, name);
|
||||
mail = pass = name = '';
|
||||
showCreate = false;
|
||||
showDropdown = false;
|
||||
dispatch('created', user);
|
||||
} catch (error) {
|
||||
addNotification({
|
||||
@@ -33,6 +34,10 @@
|
||||
});
|
||||
}
|
||||
};
|
||||
|
||||
$: if (!showDropdown) {
|
||||
id = null;
|
||||
}
|
||||
</script>
|
||||
|
||||
<Form on:submit={create}>
|
||||
|
||||
Reference in New Issue
Block a user