qpp-style 9.11.1 → 9.11.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/components/Header/ImpersonatorBanner.jsx +4 -2
- package/dist/browser.js +1 -1
- package/dist/browser.js.map +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/react/index.js +1 -1
- package/dist/react/index.js.map +1 -1
- package/package.json +1 -1
- package/session/logout.js +11 -0
|
@@ -4,7 +4,7 @@ import axios from 'axios';
|
|
|
4
4
|
import CloseIcon from '@material-ui/icons/Close';
|
|
5
5
|
|
|
6
6
|
import { TextButton } from '../Button';
|
|
7
|
-
import { deleteImpersonatedUser } from '../../session/logout';
|
|
7
|
+
import { deleteImpersonatedUser, revertQppHasAuthsCookie } from '../../session/logout';
|
|
8
8
|
|
|
9
9
|
const ImpersonatorBanner = () => {
|
|
10
10
|
const { qpp_auth_token: token = null, qpp_impersonated_user: user = null } =
|
|
@@ -21,8 +21,10 @@ const ImpersonatorBanner = () => {
|
|
|
21
21
|
].join(' ');
|
|
22
22
|
|
|
23
23
|
const onClick = () => {
|
|
24
|
-
const fn = () => {
|
|
24
|
+
const fn = () => {
|
|
25
25
|
deleteImpersonatedUser({ qpp_impersonated_user: user });
|
|
26
|
+
// Set qpp_has_authorizations cookie back to impersonator's value
|
|
27
|
+
revertQppHasAuthsCookie();
|
|
26
28
|
window.location.reload();
|
|
27
29
|
};
|
|
28
30
|
return axios
|