mirror of
https://github.com/gristlabs/grist-core.git
synced 2024-10-27 20:44:07 +00:00
(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:
parent
271a5735c3
commit
9a80f4bdf5
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user