mirror of
https://github.com/appwrite/console.git
synced 2026-06-06 19:27:48 +00:00
feat: function fixes
This commit is contained in:
+1
-3
@@ -17,9 +17,7 @@
|
||||
{repository?.organization}/{repository?.name}
|
||||
</Typography.Text>
|
||||
</Layout.Stack>
|
||||
<Button
|
||||
secondary
|
||||
href={`${base}/project-${page.params.project}/sites/create-site/repositories`}>
|
||||
<Button secondary href={`${base}/project-${page.params.project}/functions/create-function`}>
|
||||
Change
|
||||
</Button>
|
||||
</Layout.Stack>
|
||||
|
||||
-2
@@ -150,8 +150,6 @@
|
||||
func.$id
|
||||
);
|
||||
|
||||
console.log(variables);
|
||||
|
||||
// Add variables
|
||||
const promises = variables.map((variable) =>
|
||||
sdk.forProject.functions.createVariable(
|
||||
|
||||
+1
-6
@@ -26,12 +26,7 @@
|
||||
<Layout.Stack gap="xxxs" inline>
|
||||
<Typography.Caption variant="400">Updated</Typography.Caption>
|
||||
<Typography.Text variant="m-400" color="--fgcolor-neutral-primary">
|
||||
<Tooltip>
|
||||
{capitalize(timeFromNow($func.$updatedAt))}
|
||||
<span slot="tooltip">
|
||||
{toLocaleDateTime($func.$updatedAt)}
|
||||
</span>
|
||||
</Tooltip>
|
||||
{toLocaleDateTime($func.$updatedAt)}
|
||||
</Typography.Text>
|
||||
</Layout.Stack>
|
||||
<Layout.Stack gap="xxxs" inline>
|
||||
|
||||
@@ -269,7 +269,7 @@
|
||||
<Button
|
||||
secondary
|
||||
on:mousedown={() => {
|
||||
showEditorModal = true;
|
||||
showVariablesUpload = true;
|
||||
trackEvent(Click.VariablesUpdateClick, { source: analyticsSource });
|
||||
}}>
|
||||
<Icon slot="start" icon={IconUpload} /> Import .env
|
||||
@@ -415,7 +415,7 @@
|
||||
{#if sum > limit}
|
||||
<Layout.Stack direction="row" justifyContent="space-between">
|
||||
<p class="text">Total variables: {sum}</p>
|
||||
<PaginationInline {sum} {limit} bind:offset hidePages />
|
||||
<PaginationInline total={sum} {limit} bind:offset hidePages />
|
||||
</Layout.Stack>
|
||||
{/if}
|
||||
</Layout.Stack>
|
||||
|
||||
Reference in New Issue
Block a user