Skip to content

Commit

Permalink
updated at 2024-05-23T13:28:13-04:00
Browse files Browse the repository at this point in the history
  • Loading branch information
paulfitz committed May 23, 2024
1 parent 8ef8feb commit 4192b48
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 5 deletions.
2 changes: 1 addition & 1 deletion core
Submodule core updated 107 files
13 changes: 9 additions & 4 deletions ext/app/client/ui/ProductUpgrades.ts
Original file line number Diff line number Diff line change
@@ -1,16 +1,21 @@
import type {AppModel} from 'app/client/models/AppModel';
import {PlanSelection} from 'app/common/BillingAPI';
import {commonUrls} from 'app/common/gristUrls';
import {Disposable, DomArg, DomContents, IDisposableOwner} from 'grainjs';

export function buildNewSiteModal(context: Disposable, options: {
planName: string,
selectedPlan?: string,
export async function buildNewSiteModal(context: Disposable, options: {
appModel: AppModel,
plan?: PlanSelection,
onCreate?: () => void
}) {
window.location.href = commonUrls.plans;
}

export function buildUpgradeModal(owner: Disposable, planName: string) {
export async function buildUpgradeModal(owner: Disposable, options: {
appModel: AppModel,
pickPlan?: PlanSelection,
reason?: 'upgrade' | 'renew',
}) {
window.location.href = commonUrls.plans;
}

Expand Down

0 comments on commit 4192b48

Please sign in to comment.