File tree Expand file tree Collapse file tree 4 files changed +8
-6
lines changed
components/billing/alerts
routes/(console)/organization-[organization] Expand file tree Collapse file tree 4 files changed +8
-6
lines changed Original file line number Diff line number Diff line change 11
11
import { currentPlan } from ' $lib/stores/organization' ;
12
12
import { onMount } from ' svelte' ;
13
13
import SelectProjectCloud from ' ./selectProjectCloud.svelte' ;
14
+ import { toLocaleDate } from ' $lib/helpers/date' ;
14
15
let showSelectProject: boolean = $state (false );
15
16
let selectedProjects: string [] = $state ([]);
16
17
onMount (() => {
25
26
type =" warning"
26
27
title ="Action required: You have more than {$currentPlan .projects } projects." >
27
28
<svelte:fragment >
28
- Choose which projects to keep before {billingProjectsLimitDate } or upgrade to Pro. Projects
29
- over the limit will be blocked after this date.
29
+ Choose which projects to keep before {toLocaleDate ( billingProjectsLimitDate ) } or upgrade
30
+ to Pro. Projects over the limit will be blocked after this date.
30
31
</svelte:fragment >
31
32
<svelte:fragment slot =" buttons" >
32
33
<Button
Original file line number Diff line number Diff line change 9
9
import { Dependencies } from ' $lib/constants' ;
10
10
import { billingProjectsLimitDate } from ' $lib/stores/billing' ;
11
11
import { page } from ' $app/state' ;
12
- import { toLocaleDateTime } from ' $lib/helpers/date' ;
12
+ import { toLocaleDate , toLocaleDateTime } from ' $lib/helpers/date' ;
13
13
import { currentPlan } from ' $lib/stores/organization' ;
14
14
15
15
let {
101
101
{#if selectedProjects .length === $currentPlan ?.projects }
102
102
<Alert .Inline
103
103
status =" warning"
104
- title ={` ${projects .length - selectedProjects .length } projects will be archived on ${billingProjectsLimitDate } ` }>
104
+ title ={` ${projects .length - selectedProjects .length } projects will be archived on ${toLocaleDate ( billingProjectsLimitDate ) } ` }>
105
105
<span >
106
106
{@html formatProjectsToArchive ()}
107
107
will be archived.
Original file line number Diff line number Diff line change @@ -69,7 +69,7 @@ export const roles = [
69
69
70
70
export const teamStatusReadonly = 'readonly' ;
71
71
export const billingLimitOutstandingInvoice = 'outstanding_invoice' ;
72
- export const billingProjectsLimitDate = '[date] ' ;
72
+ export const billingProjectsLimitDate = '2024-09-01 ' ;
73
73
74
74
export const paymentMethods = derived ( page , ( $page ) => $page . data . paymentMethods as PaymentList ) ;
75
75
export const addressList = derived ( page , ( $page ) => $page . data . addressList as AddressesList ) ;
Original file line number Diff line number Diff line change 39
39
import CreateProjectCloud from ' ./createProjectCloud.svelte' ;
40
40
import { currentPlan , regions as regionsStore } from ' $lib/stores/organization' ;
41
41
import SelectProjectCloud from ' $lib/components/billing/alerts/selectProjectCloud.svelte' ;
42
+ import { toLocaleDate } from ' $lib/helpers/date' ;
42
43
43
44
export let data;
44
45
165
166
166
167
{#if isCloud && $currentPlan ?.projects && $currentPlan ?.projects > 0 && data .organization .projects .length > 0 && $canWriteProjects }
167
168
<Alert .Inline
168
- title ={` ${data .projects .total - data .organization .projects .length } projects will be archived on ${billingProjectsLimitDate } ` }>
169
+ title ={` ${data .projects .total - data .organization .projects .length } projects will be archived on ${toLocaleDate ( billingProjectsLimitDate ) } ` }>
169
170
<Typography .Text >
170
171
{#each projectsToArchive as project , index }{@const text = ` <b>${project .name }</b> ` }
171
172
{@html text }{index == projectsToArchive .length - 2
You can’t perform that action at this time.
0 commit comments