diff options
author | GeckoEidechse <gecko.eidechse+git@pm.me> | 2022-10-05 16:39:11 +0200 |
---|---|---|
committer | GeckoEidechse <gecko.eidechse+git@pm.me> | 2022-10-05 16:39:11 +0200 |
commit | d94401f10d15f733a7ed0e98c50c1a56141fdff2 (patch) | |
tree | c3c7719831f1e0b51dc34b795adf236303428480 /src-vue/src/plugins/store.ts | |
parent | 43d6fff1a1ffd3dc07efcc0cb4174086fd955bb5 (diff) | |
download | FlightCore-d94401f10d15f733a7ed0e98c50c1a56141fdff2.tar.gz FlightCore-d94401f10d15f733a7ed0e98c50c1a56141fdff2.zip |
refactor: Use Element+ notif. instead of `alert()`
Less jarring then receiving an `alert()` as the first thing when opening
FlightCore
Diffstat (limited to 'src-vue/src/plugins/store.ts')
-rw-r--r-- | src-vue/src/plugins/store.ts | 8 |
1 files changed, 7 insertions, 1 deletions
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; |