File tree Expand file tree Collapse file tree 3 files changed +16
-25
lines changed
routes/console/project-[project]/functions/function-[function] Expand file tree Collapse file tree 3 files changed +16
-25
lines changed Original file line number Diff line number Diff line change 21
21
import { tierToPlan , type PlanServices } from ' $lib/stores/billing' ;
22
22
import { isCloud } from ' $lib/system' ;
23
23
import { organization } from ' $lib/stores/organization' ;
24
+ import { Button } from ' $lib/elements/forms' ;
24
25
25
26
export let logs: Models .LogList ;
26
27
export let offset = 0 ;
50
51
Logs are retained in rolling {hoursToDays (limit )} intervals with the
51
52
{tierToPlan ($organization .billingPlan ).name }
52
53
plan.
53
- <button class ="link" type ="button" on:click |preventDefault ={upgradeMethod }
54
- >Upgrade</button > to increase your log retention for a longer period.
54
+ {#if $organization ?.billingPlan === ' tier-0' }
55
+ <Button link on:click ={upgradeMethod }>Upgrade</Button > to increase your log
56
+ retention for a longer period.
57
+ {/if }
55
58
</p >
56
59
</svelte:fragment >
57
60
{#each logs .logs as log }
Original file line number Diff line number Diff line change 19
19
import { getServiceLimit , tierToPlan } from ' $lib/stores/billing' ;
20
20
import { organization } from ' $lib/stores/organization' ;
21
21
import { app } from ' $lib/stores/app' ;
22
+ import { Button } from ' $lib/elements/forms' ;
22
23
23
24
let selectedRequest = ' parameters' ;
24
25
let selectedResponse = ' logs' ;
310
311
<Alert >
311
312
Logs are retained in rolling {hoursToDays (limit )} intervals
312
313
with the {tier } plan.
313
- <button
314
- class =" link"
315
- type =" button"
316
- on:click |preventDefault ={() =>
317
- wizard .start (ChangeOrganizationTierCloud )}
318
- >Upgrade</button > to increase your log retention for
319
- a longer period.
314
+ {#if $organization .billingPlan === ' tier-0' }
315
+ <Button
316
+ link
317
+ on:click ={() =>
318
+ wizard .start (ChangeOrganizationTierCloud )}
319
+ >Upgrade</Button > to increase your log retention
320
+ for a longer period.
321
+ {/if }
320
322
</Alert >
321
323
{/if }
322
324
<Code withCopy noMargin code ={execution .logs } language =" sh" />
Original file line number Diff line number Diff line change 40
40
import DeploymentCreatedBy from ' ./deploymentCreatedBy.svelte' ;
41
41
import DeploymentDomains from ' ./deploymentDomains.svelte' ;
42
42
import { GRACE_PERIOD_OVERRIDE , isCloud } from ' $lib/system' ;
43
- import { readOnly , tierToPlan } from ' $lib/stores/billing' ;
44
- import { hoursToDays } from ' $lib/helpers/date' ;
45
- import { organization } from ' $lib/stores/organization' ;
43
+ import { readOnly } from ' $lib/stores/billing' ;
46
44
47
45
export let data;
48
46
215
213
<TableCellHead width ={80 }>Size</TableCellHead >
216
214
<TableCellHead width ={40 } />
217
215
</TableHeader >
218
- <TableBody service ="logs" total ={isCloud ? Infinity : 0 }>
219
- <svelte:fragment slot =" limit" let:limit let:upgradeMethod >
220
- <p class =" text" >
221
- Logs are retained in rolling {hoursToDays (limit )} intervals with the
222
- {tierToPlan ($organization .billingPlan ).name }
223
- plan.
224
- <button
225
- class =" link"
226
- type =" button"
227
- on:click |preventDefault ={upgradeMethod }>Upgrade</button > to increase
228
- your log retention for a longer period.
229
- </p >
230
- </svelte:fragment >
216
+ <TableBody >
231
217
{#each $deploymentList .deployments as deployment , index (deployment .$id )}
232
218
{@const status = deployment .status }
233
219
<TableRow >
You can’t perform that action at this time.
0 commit comments