Skip to content

Commit

Permalink
Merge branch 'main' of github.com:appwrite/console into refactor-chan…
Browse files Browse the repository at this point in the history
…ge-plan-to-map
  • Loading branch information
ArmanNik committed Dec 28, 2023
2 parents b4b86dc + 7a69d59 commit f096271
Show file tree
Hide file tree
Showing 6 changed files with 19 additions and 9 deletions.
4 changes: 2 additions & 2 deletions src/lib/components/filters/content.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@

<div>
<form on:submit|preventDefault={addFilter}>
<div class="selects u-flex u-gap-8 u-margin-block-start-16">
<ul class="selects u-flex u-gap-8 u-margin-block-start-16">
<InputSelect
id="column"
options={$columns.map((c) => ({
Expand All @@ -130,7 +130,7 @@
options={operatorsForColumn}
placeholder="Select operator"
bind:value={operatorKey} />
</div>
</ul>
{#if column && operator && !operator?.hideInput}
<div class="u-margin-block-start-8">
{#if column.type === 'integer' || column.type === 'double'}
Expand Down
1 change: 0 additions & 1 deletion src/lib/layout/header.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,6 @@
{#if isCloud && $organization?.billingPlan === BillingPlan.STARTER && !$page.url.pathname.startsWith('/console/account')}
<Button
disabled={$organization?.markedForDeletion}
secondary
on:click={() => wizard.start(ChangeOrganizationTierCloud)}>
Upgrade
</Button>
Expand Down
2 changes: 1 addition & 1 deletion src/lib/stores/stripe.ts
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ export async function submitStripeCard(name: string, urlRoute?: string) {
}
} catch (e) {
trackError(e, Submit.PaymentMethodCreate);
throw e.message;
throw e;
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,12 @@
</Alert>
{:else}
<FormList>
<InputSwitch id="capActive" label="Enable budget cap" bind:value={capActive} />
<InputSwitch id="cap-active" label="Enable budget cap" bind:value={capActive}>
<svelte:fragment slot="description">
Budget cap limits do not include the base amount of your plan. Cap usage
is reset at the beginning of each billing cycle.
</svelte:fragment>
</InputSwitch>
{#if capActive}
<InputNumber
placeholder="Add budget cap"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -68,9 +68,15 @@
<CardGrid>
<Heading tag="h6" size="7">Permissions</Heading>
<p>
Assign read or write permissions at the <b>collection level</b> or
<b>document level</b>. If collection level permissions are assigned, permissions applied
to individual documents are ignored.
A user requires appropriate permissions at either the <b>collection level</b> or
<b>document level</b> to access a document. If no permissions are configured, no user
can access the document
<a
href="https://appwrite.io/docs/products/databases/permissions"
target="_blank"
rel="noopener noreferrer"
class="link">Learn more about database permissions</a
>.
</p>

<svelte:fragment slot="aside">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@
const projectId = $page.params.project;
const bucketId = $page.params.bucket;
const usedStorage = bytesToSize(data.organizationUsage.storageTotal, 'MB');
const usedStorage = bytesToSize(data.organizationUsage.storageTotal, 'GB');
const getPreview = (fileId: string) =>
sdk.forProject.storage.getFilePreview(bucketId, fileId, 32, 32).toString() + '&mode=admin';
Expand Down

0 comments on commit f096271

Please sign in to comment.