Skip to content

Commit

Permalink
updated at 2024-04-22T13:55:29-04:00
Browse files Browse the repository at this point in the history
  • Loading branch information
paulfitz committed Apr 22, 2024
1 parent 798b9b8 commit e4acc02
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 7 deletions.
35 changes: 29 additions & 6 deletions ext/app/client/ui/ProductUpgrades.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,30 @@
/**
* Currently, ProductUpgrades for grist-ee is more like grist-core
* (a stub) than grist-saas (a fleshed out offering). This may change
* in future.
*/
import type {AppModel} from 'app/client/models/AppModel';
import {commonUrls} from 'app/common/gristUrls';
import {Disposable, DomArg, DomContents, IDisposableOwner} from 'grainjs';

export * from 'app/client/ui/ProductUpgradesStub';
export function buildNewSiteModal(context: Disposable, options: {
planName: string,
selectedPlan?: string,
onCreate?: () => void
}) {
window.location.href = commonUrls.plans;
}

export function buildUpgradeModal(owner: Disposable, planName: string) {
window.location.href = commonUrls.plans;
}

export function showTeamUpgradeConfirmation(owner: Disposable) {
}

export interface UpgradeButton {
showUpgradeCard(...args: DomArg<HTMLElement>[]): DomContents;
showUpgradeButton(...args: DomArg<HTMLElement>[]): DomContents;
}

export function buildUpgradeButton(owner: IDisposableOwner, app: AppModel): UpgradeButton {
return {
showUpgradeCard : () => null,
showUpgradeButton : () => null,
};
}

0 comments on commit e4acc02

Please sign in to comment.