File tree Expand file tree Collapse file tree 1 file changed +6
-17
lines changed
src/routes/(console)/project-[region]-[project]/databases Expand file tree Collapse file tree 1 file changed +6
-17
lines changed Original file line number Diff line number Diff line change 24
24
let name = ' ' ;
25
25
let id: string = null ;
26
26
let showCustomId = false ;
27
- let showPlanUpgradeAlert = true ;
28
27
29
28
const trackEvents = (policies ) => {
30
29
policies .forEach ((policy ) => {
103
102
trackError (error , Submit .DatabaseCreate );
104
103
}
105
104
};
106
-
107
- $ : if (! showCreate ) {
108
- showPlanUpgradeAlert = true ;
109
- }
110
105
</script >
111
106
112
107
<Modal title ="Create database" onSubmit ={create } bind:show ={showCreate }>
132
127
133
128
{#if isCloud }
134
129
{#if $organization ?.billingPlan === BillingPlan .FREE }
135
- {#if showPlanUpgradeAlert }
136
- <Alert .Inline
137
- dismissible
138
- title =" This database won't be backed up"
139
- status =" warning"
140
- on:dismiss ={() => (showPlanUpgradeAlert = false )}>
141
- Upgrade your plan to ensure your data stays safe and backed up.
142
- <svelte:fragment slot =" actions" >
143
- <Button compact href ={$upgradeURL }>Upgrade plan</Button >
144
- </svelte:fragment >
145
- </Alert .Inline >
146
- {/if }
130
+ <Alert .Inline title =" This database won't be backed up" status =" warning" >
131
+ Upgrade your plan to ensure your data stays safe and backed up.
132
+ <svelte:fragment slot =" actions" >
133
+ <Button compact href ={$upgradeURL }>Upgrade plan</Button >
134
+ </svelte:fragment >
135
+ </Alert .Inline >
147
136
{:else }
148
137
<CreatePolicy
149
138
bind:totalPolicies
You can’t perform that action at this time.
0 commit comments