Skip to content

Conversation

@david-kalmakoff
Copy link
Contributor

Fixes #721

  • updated authenticating status when tryAuthenticating is called
  • changed a test to navigate with window location to make sure you can navigate to pages after page loads

@codecov
Copy link

codecov bot commented Nov 5, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 79.42%. Comparing base (b08b5ae) to head (ad6fc49).
Report is 3 commits behind head on master.

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.
📢 Have feedback on the report? Share it here.

this.authenticating = false;
return this.snack('Login failed');
});
};
Copy link
Member

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

};

public tryAuthenticate = async (): Promise<AxiosResponse<IUser>> => {
this.authenticating = true;
Copy link
Member

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.

});
};

public tryAuthenticate = async (): Promise<AxiosResponse<IUser>> => {
Copy link
Member

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.

@jmattheis jmattheis merged commit 7c9d770 into gotify:master Nov 6, 2024
@david-kalmakoff david-kalmakoff deleted the issue-721 branch November 6, 2024 17:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Development

Successfully merging this pull request may close these issues.

have router navigate to expected route on page loads

3 participants