mirror of
https://github.com/appwrite/console.git
synced 2026-11-18 20:47:21 +00:00
feat: add message to logs
This commit is contained in:
1 parent
b5d8023519
commit
ebb7b2017b
2 files changed
+24
-15
No files matched your search
@@ -14,6 +14,9 @@
|
||||
let columns = 0;
|
||||
|
||||
const limit = getServiceLimit(service) || Infinity;
|
||||
const upgradeMethod = () => {
|
||||
wizard.start(ChangeOrganizationTierCloud);
|
||||
};
|
||||
|
||||
$: limitReached = limit !== 0 && limit < Infinity && total >= limit;
|
||||
|
||||
@@ -29,10 +32,10 @@
|
||||
<tr class="table-row">
|
||||
<td class="table-col" width="100%" colspan={columns}>
|
||||
<span class="u-flex u-gap-24 u-main-center u-cross-center">
|
||||
<span class="text">Upgrade your plan to add {name} to your organization</span>
|
||||
<Button secondary on:click={() => wizard.start(ChangeOrganizationTierCloud)}>
|
||||
Upgrade plan
|
||||
</Button>
|
||||
<slot name="limit" {upgradeMethod} {limit}>
|
||||
<span class="text">Upgrade your plan to add {name} to your organization</span>
|
||||
<Button secondary on:click={upgradeMethod}>Upgrade plan</Button>
|
||||
</slot>
|
||||
</span>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
@@ -39,9 +39,10 @@
|
||||
import DeploymentSource from './deploymentSource.svelte';
|
||||
import DeploymentCreatedBy from './deploymentCreatedBy.svelte';
|
||||
import DeploymentDomains from './deploymentDomains.svelte';
|
||||
import { hoursToDays } from '$lib/helpers/date';
|
||||
import { GRACE_PERIOD_OVERRIDE, isCloud } from '$lib/system';
|
||||
import { readOnly } from '$lib/stores/billing';
|
||||
import { readOnly, tierToPlan } from '$lib/stores/billing';
|
||||
import { hoursToDays } from '$lib/helpers/date';
|
||||
import { organization } from '$lib/stores/organization';
|
||||
|
||||
export let data;
|
||||
|
||||
@@ -59,14 +60,7 @@
|
||||
</script>
|
||||
|
||||
<Container>
|
||||
<ContainerHeader title="Deployments" serviceId="logs">
|
||||
<svelte:fragment slot="tooltip" let:limit let:tier let:upgradeMethod>
|
||||
<p class="text">
|
||||
Logs are retained in rolling {hoursToDays(limit)} intervals with the {tier} plan.
|
||||
<button class="link" type="button" on:click|preventDefault={upgradeMethod}
|
||||
>Upgrade</button> to increase your log retention for a longer period.
|
||||
</p>
|
||||
</svelte:fragment>
|
||||
<ContainerHeader title="Deployments">
|
||||
<Create main />
|
||||
</ContainerHeader>
|
||||
{#if $deploymentList?.total}
|
||||
@@ -221,7 +215,19 @@
|
||||
<TableCellHead width={80}>Size</TableCellHead>
|
||||
<TableCellHead width={40} />
|
||||
</TableHeader>
|
||||
<TableBody>
|
||||
<TableBody service="logs" total={isCloud ? Infinity : 0}>
|
||||
<svelte:fragment slot="limit" let:limit let:upgradeMethod>
|
||||
<p class="text">
|
||||
Logs are retained in rolling {hoursToDays(limit)} intervals with the
|
||||
{tierToPlan($organization.billingPlan).name}
|
||||
plan.
|
||||
<button
|
||||
class="link"
|
||||
type="button"
|
||||
on:click|preventDefault={upgradeMethod}>Upgrade</button> to increase
|
||||
your log retention for a longer period.
|
||||
</p>
|
||||
</svelte:fragment>
|
||||
{#each $deploymentList.deployments as deployment, index (deployment.$id)}
|
||||
{@const status = deployment.status}
|
||||
<TableRow>
|
||||
|
||||
Reference in new issue
Block a user