Re-initialize Rollup Management userHasLeftApp state to fix bug with clearing URLjob deep-link when detail panel is closed. (#24841) (#24856)

This commit is contained in:
CJ Cenizal 2018-10-30 14:11:33 -07:00 committed by GitHub
parent 9cc42d61c6
commit 4adaa0c1e3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -50,6 +50,9 @@ routes.when(`${CRUD_APP_BASE_PATH}/:view?`, {
// e.g. to check license status per request.
setHttp($injector.get('$http'));
// If returning to the app, we'll need to reset this state.
setUserHasLeftApp(false);
$scope.$$postDigest(() => {
const appElement = document.getElementById('rollupJobsReactRoot');
renderReact(appElement);