diff --git a/src/lib/layout/containerHeader.svelte b/src/lib/layout/containerHeader.svelte
index eca768d5a..80585507e 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 { isCloud } from '$lib/system';
+ import { GRACE_PERIOD_OVERRIDE, isCloud } from '$lib/system';
import { createEventDispatcher, onMount } from 'svelte';
import { wizard } from '$lib/stores/wizard';
import ChangeOrganizationTierCloud from '$routes/console/changeOrganizationTierCloud.svelte';
@@ -61,7 +61,9 @@
$: isLimited = limit !== 0 && limit < Infinity;
$: overflowingServices = limitedServices.filter((service) => service.value >= 0);
$: isButtonDisabled =
- buttonDisabled || $readOnly || (isLimited && total >= limit && !hasUsageFees);
+ buttonDisabled ||
+ ($readOnly && !GRACE_PERIOD_OVERRIDE) ||
+ (isLimited && total >= limit && !hasUsageFees);
onMount(() => {
dispatch('data', { isButtonDisabled, limit, tier });
diff --git a/src/lib/system.ts b/src/lib/system.ts
index 3586468ef..5cb998dca 100644
--- a/src/lib/system.ts
+++ b/src/lib/system.ts
@@ -23,3 +23,4 @@ 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 bb3b1fd38..0cc3ff1af 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 { isCloud } from '$lib/system';
+ import { GRACE_PERIOD_OVERRIDE, 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,
+ disabled: $readOnly && !GRACE_PERIOD_OVERRIDE,
group: 'projects',
icon: 'plus'
}
@@ -143,7 +143,10 @@
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 001823e70..e229e256c 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,6 +81,7 @@
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;
@@ -232,7 +233,10 @@
-
+
Update
@@ -248,14 +252,16 @@
id="name"
label="Name"
placeholder="Enter name"
- readonly={$readOnly}
+ readonly={$readOnly && !GRACE_PERIOD_OVERRIDE}
bind:value={bucketName} />
Update
@@ -308,7 +314,8 @@
Update
@@ -422,7 +429,9 @@
- 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 f031a0645..3499e9c34 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 { isCloud } from '$lib/system';
+ import { GRACE_PERIOD_OVERRIDE, 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}
+ disabled={$readOnly && !GRACE_PERIOD_OVERRIDE}
placeholder={$bucket.maximumFileSize.toString()}
min={0}
max={isCloud ? service : Infinity}
@@ -82,7 +82,10 @@
-
+
Update