Summary: - Makes EE decide which ActivationPage to use - Makes ProductUpgrades use core implementation if not activated - Changes banners to proxy to core implementation if EE not activated - [Fix] Enables new site creation in EE as in Core: - Core enables people to freely create new team sites. - Enterprise currently redirects to the pricing page. - This enables enterprise to also create team sites, instead of redirecting. Test Plan: Manually test in EE, unit tests in Jenkins Reviewers: paulfitz, jordigh Reviewed By: paulfitz Differential Revision: https://phab.getgrist.com/D4264pull/1053/head
parent
e296e168e8
commit
b98bad0b93
@ -0,0 +1,10 @@
|
|||||||
|
import {AppModel} from 'app/client/models/AppModel';
|
||||||
|
import {DocPageModel} from 'app/client/models/DocPageModel';
|
||||||
|
|
||||||
|
export function buildHomeBanners(_app: AppModel) {
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
|
||||||
|
export function buildDocumentBanners(_docPageModel: DocPageModel) {
|
||||||
|
return null;
|
||||||
|
}
|
@ -0,0 +1,18 @@
|
|||||||
|
import {AppModel} from 'app/client/models/AppModel';
|
||||||
|
import { Disposable, IDomCreator } from 'grainjs';
|
||||||
|
|
||||||
|
export type IActivationPageCreator = IDomCreator<[AppModel]>
|
||||||
|
|
||||||
|
/**
|
||||||
|
* A blank ActivationPage stand-in, as it's possible for the frontend to try and load an "activation page",
|
||||||
|
* even though there's no activation in core.
|
||||||
|
*/
|
||||||
|
export class DefaultActivationPage extends Disposable {
|
||||||
|
constructor(_appModel: AppModel) {
|
||||||
|
super();
|
||||||
|
}
|
||||||
|
|
||||||
|
public buildDom() {
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
}
|
@ -1,12 +1,7 @@
|
|||||||
import {AppModel} from 'app/client/models/AppModel';
|
import {
|
||||||
import {Disposable} from 'grainjs';
|
DefaultActivationPage, IActivationPageCreator
|
||||||
|
} from "app/client/ui/DefaultActivationPage";
|
||||||
|
|
||||||
export class ActivationPage extends Disposable {
|
export function getActivationPage(): IActivationPageCreator {
|
||||||
constructor(_appModel: AppModel) {
|
return DefaultActivationPage;
|
||||||
super();
|
|
||||||
}
|
|
||||||
|
|
||||||
public buildDom() {
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in new issue