-
Notifications
You must be signed in to change notification settings - Fork 8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Realm dropdown shows only readable realms #1041
Realm dropdown shows only readable realms #1041
Conversation
…down. provide realm dropdown default fallbacks
@@ -94,7 +94,7 @@ export class RealmAuthClient { | |||
} | |||
|
|||
private async initiateSessionRequest() { | |||
return fetch(`${this.realmURL.href}_session`, { | |||
return this.loader.fetch(`${this.realmURL.href}_session`, { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this was necessary in order to perform resolution on the https://cardstack.com/base URL. in general we should always be using the loader's fetch
.
@@ -106,7 +106,7 @@ export class RealmAuthClient { | |||
} | |||
|
|||
private async challengeRequest(challenge: string) { | |||
return fetch(`${this.realmURL.href}_session`, { | |||
return this.loader.fetch(`${this.realmURL.href}_session`, { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ditto
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks OK to me!
…pector-inherit-create-and-duplicate-instance
In this PR we make the base realm a read-only realm. The realm drop down is updated to only show writable realms. We also provide a default realm menu item fallbacks for the case when the current realm is a read-only realm.
TODO: