Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[RFR] add loggedout notification when authProvider throw a fetch error #2733

Merged
merged 1 commit into from
Jan 7, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions packages/ra-core/src/sideEffect/auth.js
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,7 @@ export default authProvider => {
})
);
yield put(hideNotification());
yield put(showNotification('ra.notification.logged_out', 'warning'));
}
break;
}
Expand Down
1 change: 1 addition & 0 deletions packages/ra-language-english/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,7 @@ module.exports = {
data_provider_error:
'dataProvider error. Check the console for details.',
canceled: 'Action cancelled',
logged_out: 'Your session has ended, please reconnect.'
},
validation: {
required: 'Required',
Expand Down
1 change: 1 addition & 0 deletions packages/ra-language-french/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,7 @@ module.exports = {
data_provider_error:
'Erreur dans le dataProvider. Plus de détails dans la console.',
canceled: 'Action annulée',
logged_out: 'Votre session a pris fin, veuillez-vous reconnectez.'
},
validation: {
required: 'Ce champ est requis',
Expand Down