Skip to content
Snippets Groups Projects
Unverified Commit d6110731 authored by Jed Fox's avatar Jed Fox
Browse files

Close budget before open config-server page

parent ad092c28
No related branches found
No related tags found
No related merge requests found
......@@ -37,7 +37,7 @@ function LoggedInUser({
async function onChangePassword() {
await closeBudget();
history.push('/change-password');
window.__history.push('/change-password');
}
function onMenuSelect(type) {
......@@ -54,11 +54,12 @@ function LoggedInUser({
}
}
function onClick() {
async function onClick() {
if (serverUrl) {
setMenuOpen(true);
} else {
history.push('/config-server');
await closeBudget();
window.__history.push('/config-server');
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment