diff --git a/src/lib/layout/containerHeader.svelte b/src/lib/layout/containerHeader.svelte
index 80585507e..eca768d5a 100644
--- a/src/lib/layout/containerHeader.svelte
+++ b/src/lib/layout/containerHeader.svelte
@@ -11,7 +11,7 @@
import { Alert, DropList, Heading } from '$lib/components';
import { Pill } from '$lib/elements';
import { organization } from '$lib/stores/organization';
- import { GRACE_PERIOD_OVERRIDE, isCloud } from '$lib/system';
+ import { isCloud } from '$lib/system';
import { createEventDispatcher, onMount } from 'svelte';
import { wizard } from '$lib/stores/wizard';
import ChangeOrganizationTierCloud from '$routes/console/changeOrganizationTierCloud.svelte';
@@ -61,9 +61,7 @@
$: isLimited = limit !== 0 && limit < Infinity;
$: overflowingServices = limitedServices.filter((service) => service.value >= 0);
$: isButtonDisabled =
- buttonDisabled ||
- ($readOnly && !GRACE_PERIOD_OVERRIDE) ||
- (isLimited && total >= limit && !hasUsageFees);
+ buttonDisabled || $readOnly || (isLimited && total >= limit && !hasUsageFees);
onMount(() => {
dispatch('data', { isButtonDisabled, limit, tier });
diff --git a/src/lib/system.ts b/src/lib/system.ts
index 5cb998dca..3586468ef 100644
--- a/src/lib/system.ts
+++ b/src/lib/system.ts
@@ -23,4 +23,3 @@ export const MODE = VARS.CONSOLE_MODE === Mode.CLOUD ? Mode.CLOUD : Mode.SELF_HO
export const isCloud = MODE === Mode.CLOUD;
export const isSelfHosted = MODE !== Mode.CLOUD;
export const hasStripePublicKey = !!VARS.STRIPE_PUBLIC_KEY;
-export const GRACE_PERIOD_OVERRIDE = false;
diff --git a/src/routes/console/organization-[organization]/+page.svelte b/src/routes/console/organization-[organization]/+page.svelte
index 0cc3ff1af..bb3b1fd38 100644
--- a/src/routes/console/organization-[organization]/+page.svelte
+++ b/src/routes/console/organization-[organization]/+page.svelte
@@ -7,7 +7,7 @@
import CreateProject from './createProject.svelte';
import CreateOrganization from '../createOrganization.svelte';
import { wizard } from '$lib/stores/wizard';
- import { GRACE_PERIOD_OVERRIDE, isCloud } from '$lib/system';
+ import { isCloud } from '$lib/system';
import { page } from '$app/stores';
import { registerCommands } from '$lib/commandCenter';
import {
@@ -90,7 +90,7 @@
showCreate = true;
},
keys: ['c'],
- disabled: $readOnly && !GRACE_PERIOD_OVERRIDE,
+ disabled: $readOnly,
group: 'projects',
icon: 'plus'
}
@@ -143,10 +143,7 @@
Projects
-
diff --git a/src/routes/console/project-[project]/storage/bucket-[bucket]/settings/+page.svelte b/src/routes/console/project-[project]/storage/bucket-[bucket]/settings/+page.svelte
index e229e256c..001823e70 100644
--- a/src/routes/console/project-[project]/storage/bucket-[bucket]/settings/+page.svelte
+++ b/src/routes/console/project-[project]/storage/bucket-[bucket]/settings/+page.svelte
@@ -81,7 +81,6 @@
import { bucket } from '../store';
import UpdateMaxFileSize from './updateMaxFileSize.svelte';
import { readOnly } from '$lib/stores/billing';
- import { GRACE_PERIOD_OVERRIDE } from '$lib/system';
let showDelete = false;
@@ -233,10 +232,7 @@
-
+
Update
@@ -252,16 +248,14 @@
id="name"
label="Name"
placeholder="Enter name"
- readonly={$readOnly && !GRACE_PERIOD_OVERRIDE}
+ readonly={$readOnly}
bind:value={bucketName} />
Update
@@ -314,8 +308,7 @@
Update
@@ -429,9 +422,7 @@
- Update
+ Update
diff --git a/src/routes/console/project-[project]/storage/bucket-[bucket]/settings/updateMaxFileSize.svelte b/src/routes/console/project-[project]/storage/bucket-[bucket]/settings/updateMaxFileSize.svelte
index 3499e9c34..f031a0645 100644
--- a/src/routes/console/project-[project]/storage/bucket-[bucket]/settings/updateMaxFileSize.svelte
+++ b/src/routes/console/project-[project]/storage/bucket-[bucket]/settings/updateMaxFileSize.svelte
@@ -8,7 +8,7 @@
import { getServiceLimit, readOnly, tierToPlan } from '$lib/stores/billing';
import { organization } from '$lib/stores/organization';
import { wizard } from '$lib/stores/wizard';
- import { GRACE_PERIOD_OVERRIDE, isCloud } from '$lib/system';
+ import { isCloud } from '$lib/system';
import ChangeOrganizationTierCloud from '$routes/console/changeOrganizationTierCloud.svelte';
import { bucket } from '../store';
import { updateBucket } from './+page.svelte';
@@ -66,7 +66,7 @@
fullWidth
id="size"
label="Size"
- disabled={$readOnly && !GRACE_PERIOD_OVERRIDE}
+ disabled={$readOnly}
placeholder={$bucket.maximumFileSize.toString()}
min={0}
max={isCloud ? service : Infinity}
@@ -82,10 +82,7 @@
-
+
Update