diff --git a/runtime/pkg/email/email.go b/runtime/pkg/email/email.go index 35828a9381c..5c4883dbd94 100644 --- a/runtime/pkg/email/email.go +++ b/runtime/pkg/email/email.go @@ -496,7 +496,7 @@ func (c *Client) SendSubscriptionEnded(opts *SubscriptionEnded) error { ToName: opts.ToName, Subject: fmt.Sprintf("Subscription for %s has now ended. Org is hibernated", opts.OrgName), PreButton: template.HTML(fmt.Sprintf(` -Your cancelled subscription for %s has and its projects are now hibernating. We hope you enjoyed using Rill Cloud during your time with us. +Your cancelled subscription for %s has ended and its projects are now hibernating. We hope you enjoyed using Rill Cloud during your time with us.

If you’d like to reactive your subscription and regain access, you can easily do so at any time by renewing your subscription from here: `, opts.OrgName)), diff --git a/web-admin/src/routes/+layout.ts b/web-admin/src/routes/+layout.ts index 3e066ff3d58..2c3542e68ca 100644 --- a/web-admin/src/routes/+layout.ts +++ b/web-admin/src/routes/+layout.ts @@ -50,7 +50,7 @@ export const load = async ({ params, url, route }) => { } // If no organization or project, return empty permissions - if (!organization || !project) { + if (!organization) { return { organizationPermissions: {}, projectPermissions: {}, @@ -70,6 +70,13 @@ export const load = async ({ params, url, route }) => { } } + if (!project) { + return { + organizationPermissions, + projectPermissions: {}, + }; + } + try { const { projectPermissions, diff --git a/web-common/src/features/project/ProjectDeployer.ts b/web-common/src/features/project/ProjectDeployer.ts index a6e06085823..5cc8391982b 100644 --- a/web-common/src/features/project/ProjectDeployer.ts +++ b/web-common/src/features/project/ProjectDeployer.ts @@ -153,10 +153,6 @@ export class ProjectDeployer { // Project does not yet exist - if (!org && this.useOrg) { - org = this.useOrg; - } - let checkNextOrg = false; if (!org) { const { org: inferredOrg, checkNextOrg: inferredCheckNextOrg } = @@ -182,6 +178,13 @@ export class ProjectDeployer { } private async inferOrg(rillUserOrgs: string[]) { + if (this.useOrg) { + return { + org: this.useOrg, + checkNextOrg: false, + }; + } + let org: string | undefined; let checkNextOrg = false; if (rillUserOrgs.length === 1) { diff --git a/web-local/src/routes/(misc)/deploy/+page.svelte b/web-local/src/routes/(misc)/deploy/+page.svelte index fed138a0081..49862f3f449 100644 --- a/web-local/src/routes/(misc)/deploy/+page.svelte +++ b/web-local/src/routes/(misc)/deploy/+page.svelte @@ -15,9 +15,8 @@ import type { PageData } from "./$types"; export let data: PageData; - $: ({ orgParam } = data); - const deployer = new ProjectDeployer(orgParam); + const deployer = new ProjectDeployer(data.orgParam); const metadata = deployer.metadata; const user = deployer.user; const project = deployer.project;