-
-
Notifications
You must be signed in to change notification settings - Fork 645
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
bug: fixed router navigating to homepage on page loads #723
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #723 +/- ##
=======================================
Coverage 79.42% 79.42%
=======================================
Files 56 56
Lines 2639 2639
=======================================
Hits 2096 2096
Misses 452 452
Partials 91 91 ☔ View full report in Codecov by Sentry. |
ui/src/CurrentUser.ts
Outdated
@@ -99,7 +99,9 @@ export class CurrentUser { | |||
}; |
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.
FYI: your commits aren't linked to your GitHub account. See the email in https://github.com/gotify/server/pull/723/commits/eaa19ddcb110296b7fd49e8589f2c5a3b22b2b55.patch
eaa19dd
to
2e1f27d
Compare
ui/src/CurrentUser.ts
Outdated
@@ -99,7 +99,9 @@ export class CurrentUser { | |||
}; | |||
|
|||
public tryAuthenticate = async (): Promise<AxiosResponse<IUser>> => { | |||
this.authenticating = true; |
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.
I've removed this line, as I think we don't want to show the loading spinner, when we try to reconnect after there was a successful connection. I've set this.authenticating to true on variable initialization, so it should behave the same.
@@ -99,7 +99,9 @@ export class CurrentUser { | |||
}; | |||
|
|||
public tryAuthenticate = async (): Promise<AxiosResponse<IUser>> => { |
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.
The plugin detail page threw an exception because the plugin data wasn't loaded there.
Fixes #721
authenticating
status whentryAuthenticating
is called