mirror of
https://github.com/gristlabs/grist-core.git
synced 2024-10-20 09:04:08 +00:00
ee109e9186
Summary: Removing NEW_DEAL flag checks and exposing all new deal features as default. Also removing Pages.ts as it was moved to grist-core. Test Plan: Existing and updated tests. Reviewers: paulfitz Reviewed By: paulfitz Differential Revision: https://phab.getgrist.com/D3572
31 lines
904 B
TypeScript
31 lines
904 B
TypeScript
import type {AppModel} from 'app/client/models/AppModel';
|
|
import {commonUrls} from 'app/common/gristUrls';
|
|
import {Disposable, DomArg, DomContents, IDisposableOwner} from 'grainjs';
|
|
|
|
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,
|
|
};
|
|
}
|