|
|
@ -101,6 +101,7 @@ export interface AppModel {
|
|
|
|
dismissedWelcomePopups: Observable<DismissedReminder[]>;
|
|
|
|
dismissedWelcomePopups: Observable<DismissedReminder[]>;
|
|
|
|
|
|
|
|
|
|
|
|
pageType: Observable<PageType>;
|
|
|
|
pageType: Observable<PageType>;
|
|
|
|
|
|
|
|
needsOrg: Observable<boolean>;
|
|
|
|
|
|
|
|
|
|
|
|
notifier: Notifier;
|
|
|
|
notifier: Notifier;
|
|
|
|
planName: string|null;
|
|
|
|
planName: string|null;
|
|
|
@ -253,6 +254,11 @@ export class AppModelImpl extends Disposable implements AppModel {
|
|
|
|
public readonly pageType: Observable<PageType> = Computed.create(this, urlState().state,
|
|
|
|
public readonly pageType: Observable<PageType> = Computed.create(this, urlState().state,
|
|
|
|
(use, state) => (state.doc ? "doc" : (state.billing ? "billing" : (state.welcome ? "welcome" : "home"))));
|
|
|
|
(use, state) => (state.doc ? "doc" : (state.billing ? "billing" : (state.welcome ? "welcome" : "home"))));
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public readonly needsOrg: Observable<boolean> = Computed.create(
|
|
|
|
|
|
|
|
this, urlState().state, (use, state) => {
|
|
|
|
|
|
|
|
return !(Boolean(state.welcome) || state.billing === 'scheduled');
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
public readonly notifier = this.topAppModel.notifier;
|
|
|
|
public readonly notifier = this.topAppModel.notifier;
|
|
|
|
|
|
|
|
|
|
|
|
public readonly behavioralPromptsManager: BehavioralPromptsManager =
|
|
|
|
public readonly behavioralPromptsManager: BehavioralPromptsManager =
|
|
|
|