summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhil Hughes <me@iamphill.com>2017-07-13 09:54:41 +0100
committerPhil Hughes <me@iamphill.com>2017-07-13 09:54:41 +0100
commit6900dff23d70ea59b13b299a9966378ed3e0358f (patch)
tree6d86b23ec2693b0926f0ae42aae625f45170e5d6
parentd741df1dfb5644bc4d17ce0719db1da236403c65 (diff)
downloadgitlab-ce-6900dff23d70ea59b13b299a9966378ed3e0358f.tar.gz
Reload page after changing navigation preferencereload-new-navigation-option-change
Closes #34968
-rw-r--r--app/assets/javascripts/experimental_flags.js3
1 files changed, 3 insertions, 0 deletions
diff --git a/app/assets/javascripts/experimental_flags.js b/app/assets/javascripts/experimental_flags.js
index dbd3843cef7..6ee65ca72f9 100644
--- a/app/assets/javascripts/experimental_flags.js
+++ b/app/assets/javascripts/experimental_flags.js
@@ -7,5 +7,8 @@ export default () => {
Cookies.set(el.name, el.value, {
expires: 365 * 10,
});
+
+ document.body.scrollTop = 0;
+ window.location.reload();
});
};