Skip to content
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

Show a toast on Error in SignOutHandler #526

Merged
merged 2 commits into from
Nov 22, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions app/controllers/application.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import ENV from 'website-my/config/environment';
export default class ApplicationController extends Controller {
@service router;
@service featureFlag;
@service toast;
@tracked toVisible = this.checkDeviceType();

GITHUB_URL = GITHUB_URL;
Expand All @@ -33,6 +34,9 @@ export default class ApplicationController extends Controller {
}
} catch (err) {
console.error('Error: ', err);
this.toast.error(
'Unable to sign out. Something went wrong. Please try again.'
);
}
}

Expand Down
Loading