(core) Exclude additional pages from needsOrg

Summary:
A recent change broke the ability to open the account page if the current
org was inaccessible or invalid. Now the account page, and a few additional
pages, are excluded from needing an org to load.

Test Plan: Browser test.

Reviewers: jarek

Reviewed By: jarek

Differential Revision: https://phab.getgrist.com/D3944
This commit is contained in:
George Gevoian 2023-07-06 00:28:48 -04:00
parent 271a5735c3
commit 9a80f4bdf5

View File

@ -284,7 +284,13 @@ export class AppModelImpl extends Disposable implements AppModel {
public readonly needsOrg: Observable<boolean> = Computed.create( public readonly needsOrg: Observable<boolean> = Computed.create(
this, urlState().state, (use, state) => { this, urlState().state, (use, state) => {
return !(Boolean(state.welcome) || state.billing === 'scheduled'); return !(
Boolean(state.welcome) ||
state.billing === 'scheduled' ||
Boolean(state.account) ||
Boolean(state.activation) ||
Boolean(state.supportGrist)
);
}); });
public readonly notifier = this.topAppModel.notifier; public readonly notifier = this.topAppModel.notifier;