From e301086cbb26fcb1d9e520c016b00233aba0f315 Mon Sep 17 00:00:00 2001 From: GeckoEidechse <40122905+GeckoEidechse@users.noreply.github.com> Date: Wed, 30 Nov 2022 18:30:23 +0100 Subject: refactor: Remove the "Origin running" check from frontend (#94) * refactor: Remove Origin running check in frontend We already perform the check in the backend. Frontend does not check for OS and as such on Linux will just always tell you that Origin is not running. * feat: Show notification toast, not alert pop-up * refactor: Perform OS check before Origin check --- src-vue/src/plugins/store.ts | 19 ++++++------------- 1 file changed, 6 insertions(+), 13 deletions(-) (limited to 'src-vue') diff --git a/src-vue/src/plugins/store.ts b/src-vue/src/plugins/store.ts index 2d7df80c..8e793ced 100644 --- a/src-vue/src/plugins/store.ts +++ b/src-vue/src/plugins/store.ts @@ -192,18 +192,6 @@ export const store = createStore({ // Game is ready to play. case NorthstarState.READY_TO_PLAY: - // Show an error message if Origin is not running. - if (!state.origin_is_running) { - ElNotification({ - title: 'Origin is not running', - message: "Northstar cannot launch while you're not authenticated with Origin.", - type: 'warning', - position: 'bottom-right' - }); - - // If Origin isn't running, end here - return; - } await invoke("launch_northstar_caller", { gameInstall: game_install }) .then((message) => { console.log(message); @@ -211,7 +199,12 @@ export const store = createStore({ }) .catch((error) => { console.error(error); - alert(error); + ElNotification({ + title: 'Error', + message: error, + type: 'error', + position: 'bottom-right' + }); }); break; -- cgit v1.2.3