Skip to content

Commit

Permalink
Fix logout button not work on Safari
Browse files Browse the repository at this point in the history
After logged on via Safari web browser, click <user> -> Log out button
does not take effect until clicking on other tab. The current page still
works normally. For example, in Virtual Media page, after clicking on
the Log out button, nothing happens and we can still mount ISO file.
The issue does not happen on Chrome or Firefox.

Fix the issue by changing router.go() to router.push().

Reference:
 vuejs/vue-router#2554
 https://codewithandrea.com/articles/flutter-navigation-gorouter-go-vs-push/

Tested:
1. Check if the issue does not happen on Safari anymore.
2. Check if no issue with Google Chrome and Mozilla Firefox.

Change-Id: I2ae35dad2dec6b19c3cb9d7f8d577b6077ac8d9c
Signed-off-by: Thang Q. Nguyen <thang@os.amperecomputing.com>
Signed-off-by: HuyLe <hule@amperecomputing.com>
  • Loading branch information
thangqn-ampere committed Jun 2, 2023
1 parent 2dabfc1 commit 780733a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/store/modules/Authentication/AuthenticanStore.js
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ const AuthenticationStore = {
commit('setConsoleWindow', false);
commit('logout');
})
.then(() => router.go('/login'))
.then(() => router.push('/login'))
.catch((error) => console.log(error));
},
getUserInfo(_, username) {
Expand Down

0 comments on commit 780733a

Please sign in to comment.