Skip to content

Commit

Permalink
Merge pull request #2733 from marmelab/loggedout_notification
Browse files Browse the repository at this point in the history
[RFR] add loggedout notification when authProvider throw a fetch error
  • Loading branch information
fzaninotto authored Jan 7, 2019
2 parents e5cc8cd + 26b95af commit 339220e
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
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

0 comments on commit 339220e

Please sign in to comment.