From d94401f10d15f733a7ed0e98c50c1a56141fdff2 Mon Sep 17 00:00:00 2001 From: GeckoEidechse Date: Wed, 5 Oct 2022 16:39:11 +0200 Subject: refactor: Use Element+ notif. instead of `alert()` Less jarring then receiving an `alert()` as the first thing when opening FlightCore --- src-vue/src/plugins/store.ts | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'src-vue/src/plugins') diff --git a/src-vue/src/plugins/store.ts b/src-vue/src/plugins/store.ts index b2106960..fdf0ce66 100644 --- a/src-vue/src/plugins/store.ts +++ b/src-vue/src/plugins/store.ts @@ -138,7 +138,13 @@ async function _initializeApp(state: any) { .catch((err) => { // Gamepath not found or other error console.error(err); - alert(err); + ElNotification({ + title: 'Titanfall2 not found!', + message: "Please manually select install location", + type: 'error', + position: 'bottom-right', + duration: 0 // Duration `0` means the notification will not auto-vanish + }); }); const typedResult: GameInstall = result as GameInstall; state.game_path = typedResult.game_path; -- cgit v1.2.3