Skip to content

Commit

Permalink
not show session updates toast after password modified
Browse files Browse the repository at this point in the history
  • Loading branch information
mayswind committed Jan 19, 2025
1 parent 8756601 commit fb36717
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions src/views/desktop/user/settings/tabs/UserSecuritySettingTab.vue
Original file line number Diff line number Diff line change
Expand Up @@ -243,7 +243,7 @@ export default {
self.settingsStore.updateLocalizedDefaultSettings(localeDefaultSettings);
}
self.reloadSessions();
self.reloadSessions(true);
self.$refs.snackbar.showMessage('Your profile has been successfully updated');
}).catch(error => {
Expand All @@ -255,16 +255,18 @@ export default {
}
});
},
reloadSessions() {
reloadSessions(silent) {
const self = this;
self.loadingSession = true;
self.tokensStore.getAllTokens().then(tokens => {
if (isEquals(self.tokens, tokens)) {
self.$refs.snackbar.showMessage('Session list is up to date');
} else {
self.$refs.snackbar.showMessage('Session list has been updated');
if (!silent) {
if (isEquals(self.tokens, tokens)) {
self.$refs.snackbar.showMessage('Session list is up to date');
} else {
self.$refs.snackbar.showMessage('Session list has been updated');
}
}
self.tokens = tokens;
Expand Down

0 comments on commit fb36717

Please sign in to comment.