feat(close) Add promotional close page
This commit is contained in:
parent
401003b907
commit
0289a93e5a
|
@ -74,6 +74,7 @@ var interfaceConfig = {
|
||||||
|
|
||||||
// A html text to be shown to guests on the close page, false disables it
|
// A html text to be shown to guests on the close page, false disables it
|
||||||
CLOSE_PAGE_GUEST_HINT: false,
|
CLOSE_PAGE_GUEST_HINT: false,
|
||||||
|
SHOW_PROMOTIONAL_CLOSE_PAGE: false,
|
||||||
RANDOM_AVATAR_URL_PREFIX: false,
|
RANDOM_AVATAR_URL_PREFIX: false,
|
||||||
RANDOM_AVATAR_URL_SUFFIX: false,
|
RANDOM_AVATAR_URL_SUFFIX: false,
|
||||||
FILM_STRIP_MAX_HEIGHT: 120,
|
FILM_STRIP_MAX_HEIGHT: 120,
|
||||||
|
|
|
@ -30,6 +30,8 @@ import {
|
||||||
import logger from './logger';
|
import logger from './logger';
|
||||||
|
|
||||||
declare var APP: Object;
|
declare var APP: Object;
|
||||||
|
declare var interfaceConfig: Object;
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Triggers an in-app navigation to a specific route. Allows navigation to be
|
* Triggers an in-app navigation to a specific route. Allows navigation to be
|
||||||
|
@ -254,8 +256,15 @@ export function maybeRedirectToWelcomePage(options: Object = {}) {
|
||||||
// to close page
|
// to close page
|
||||||
window.sessionStorage.setItem('guest', isGuest);
|
window.sessionStorage.setItem('guest', isGuest);
|
||||||
|
|
||||||
dispatch(redirectToStaticPage(`static/${
|
let path = 'close.html';
|
||||||
options.feedbackSubmitted ? 'close.html' : 'close2.html'}`));
|
|
||||||
|
if (interfaceConfig.SHOW_PROMOTIONAL_CLOSE_PAGE) {
|
||||||
|
path = 'close3.html';
|
||||||
|
} else if (!options.feedbackSubmitted) {
|
||||||
|
path = 'close2.html';
|
||||||
|
}
|
||||||
|
|
||||||
|
dispatch(redirectToStaticPage(`static/${path}`));
|
||||||
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
@ -279,4 +288,3 @@ export function maybeRedirectToWelcomePage(options: Object = {}) {
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue