From 2e0b5986d00b7b416931cdc2c379a777b3c249f5 Mon Sep 17 00:00:00 2001 From: Yash Raj <56453897+yesyash@users.noreply.github.com> Date: Thu, 23 Nov 2023 02:01:53 +0530 Subject: [PATCH] Show a toast on Error in `SignOutHandler` (#526) * Sho a toast on Error in SignOutHandler * style: fix prettier issues --------- Co-authored-by: Prakash --- app/controllers/application.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/app/controllers/application.js b/app/controllers/application.js index 83e0ce1c..93b6b412 100644 --- a/app/controllers/application.js +++ b/app/controllers/application.js @@ -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; @@ -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.' + ); } }