File tree Expand file tree Collapse file tree 1 file changed +11
-2
lines changed
src/routes/(console)/organization-[organization] Expand file tree Collapse file tree 1 file changed +11
-2
lines changed Original file line number Diff line number Diff line change 6
6
import { base } from ' $app/paths' ;
7
7
import GradientBanner from ' $lib/components/billing/gradientBanner.svelte' ;
8
8
import { Badge , Typography } from ' @appwrite.io/pink-svelte' ;
9
+ import { activeHeaderAlert } from ' ../store' ;
9
10
10
11
$ : upgradeUrl = ` ${base }/organization-${$organization ?.$id }/change-plan ` ;
11
12
$ : remainingDays = calculateEnterpriseTrial ($organization );
13
+
14
+ let show = true ;
15
+
16
+ function handleClose() {
17
+ show = false ;
18
+ const now = new Date ().getTime ();
19
+ localStorage .setItem ($activeHeaderAlert .id , now .toString ());
20
+ }
12
21
</script >
13
22
14
- {#if $organization ?.$id && remainingDays > 0 && ! hideBillingHeaderRoutes .includes (page .url .pathname )}
15
- <GradientBanner variant =" image" >
23
+ {#if $organization ?.$id && remainingDays > 0 && ! hideBillingHeaderRoutes .includes (page .url .pathname ) && show }
24
+ <GradientBanner variant ="image" on:close ={ handleClose } >
16
25
<div class =" banner-fullwidth-grid" >
17
26
<Typography .Text >
18
27
Your enterprise trial expires in <Badge
You can’t perform that action at this time.
0 commit comments