mirror of
https://github.com/appwrite/console.git
synced 2026-11-18 20:47:21 +00:00
feat: small fixes
This commit is contained in:
1 parent
07abdd9b44
commit
aa286c1de0
3 files changed
+14
-6
No files matched your search
@@ -17,7 +17,6 @@
|
||||
showCreate = false;
|
||||
$createFunction.events.push(copyValue);
|
||||
$createFunction = $createFunction;
|
||||
console.log($createFunction);
|
||||
}
|
||||
|
||||
const events = ['create', 'update', 'delete'];
|
||||
|
||||
@@ -15,6 +15,7 @@
|
||||
import { Query } from '@aw-labs/appwrite-console';
|
||||
|
||||
const create = async () => {
|
||||
console.log($createFunction);
|
||||
try {
|
||||
await sdkForProject.functions.create(
|
||||
$createFunction.id ?? 'unique()',
|
||||
@@ -44,8 +45,16 @@
|
||||
};
|
||||
|
||||
onDestroy(() => {
|
||||
$createFunction.execute = [];
|
||||
$createFunction.events = [];
|
||||
$createFunction = {
|
||||
id: null,
|
||||
name: '',
|
||||
execute: [],
|
||||
runtime: '',
|
||||
vars: [],
|
||||
events: [],
|
||||
schedule: '',
|
||||
timeout: 0
|
||||
};
|
||||
});
|
||||
|
||||
const stepsComponents: WizardStepsType = new Map();
|
||||
|
||||
@@ -77,19 +77,19 @@
|
||||
<svelte:fragment slot="list">
|
||||
<DropListItem
|
||||
on:click={() => {
|
||||
addRole('role:any');
|
||||
addRole('any');
|
||||
}}>
|
||||
Any
|
||||
</DropListItem>
|
||||
<DropListItem
|
||||
on:click={() => {
|
||||
addRole('role:guest');
|
||||
addRole('guest');
|
||||
}}>
|
||||
All guests
|
||||
</DropListItem>
|
||||
<DropListItem
|
||||
on:click={() => {
|
||||
addRole('role:member');
|
||||
addRole('member');
|
||||
}}>
|
||||
All users
|
||||
</DropListItem>
|
||||
|
||||
Reference in new issue
Block a user