From ebb7b2017bc6b5048128480eb8ced6c22613f242 Mon Sep 17 00:00:00 2001 From: Arman Date: Wed, 13 Dec 2023 18:57:00 +0100 Subject: [PATCH] feat: add message to logs --- src/lib/elements/table/body.svelte | 11 +++++--- .../function-[function]/+page.svelte | 28 +++++++++++-------- 2 files changed, 24 insertions(+), 15 deletions(-) diff --git a/src/lib/elements/table/body.svelte b/src/lib/elements/table/body.svelte index 465c4ddf5..7db8b0522 100644 --- a/src/lib/elements/table/body.svelte +++ b/src/lib/elements/table/body.svelte @@ -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 @@ - Upgrade your plan to add {name} to your organization - + + Upgrade your plan to add {name} to your organization + + diff --git a/src/routes/console/project-[project]/functions/function-[function]/+page.svelte b/src/routes/console/project-[project]/functions/function-[function]/+page.svelte index 75fe4bc26..da05c0b6f 100644 --- a/src/routes/console/project-[project]/functions/function-[function]/+page.svelte +++ b/src/routes/console/project-[project]/functions/function-[function]/+page.svelte @@ -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 @@ - - -

- Logs are retained in rolling {hoursToDays(limit)} intervals with the {tier} plan. - to increase your log retention for a longer period. -

-
+ {#if $deploymentList?.total} @@ -221,7 +215,19 @@ Size - + + +

+ Logs are retained in rolling {hoursToDays(limit)} intervals with the + {tierToPlan($organization.billingPlan).name} + plan. + to increase + your log retention for a longer period. +

+
{#each $deploymentList.deployments as deployment, index (deployment.$id)} {@const status = deployment.status}