Merge branch 'users' of github.com:appwrite/appwrite-console-poc into storage

This commit is contained in:
Arman
2022-07-04 17:19:17 +02:00
2 changed files with 12 additions and 2 deletions
@@ -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}>