diff --git a/dashboard-ui/mypreferencesmenu.html b/dashboard-ui/mypreferencesmenu.html index 64fad7208c..b9d13ed5db 100644 --- a/dashboard-ui/mypreferencesmenu.html +++ b/dashboard-ui/mypreferencesmenu.html @@ -62,23 +62,23 @@ -
+

diff --git a/dashboard-ui/scripts/mypreferencescommon.js b/dashboard-ui/scripts/mypreferencescommon.js index e353217527..a53361bd62 100644 --- a/dashboard-ui/scripts/mypreferencescommon.js +++ b/dashboard-ui/scripts/mypreferencescommon.js @@ -38,10 +38,10 @@ pageIdOn('pageshow', 'myPreferencesMenuPage', function () { } }); - if (AppInfo.isNativeApp && browserInfo.safari) { - page.querySelector('.userSection').classList.remove('hide'); + if (Dashboard.isConnectMode()) { + page.querySelector('.selectServer').classList.remove('hide'); } else { - page.querySelector('.userSection').classList.add('hide'); + page.querySelector('.selectServer').classList.add('hide'); } }); \ No newline at end of file diff --git a/dashboard-ui/scripts/site.js b/dashboard-ui/scripts/site.js index b4d2e4f371..0bd9e1235e 100644 --- a/dashboard-ui/scripts/site.js +++ b/dashboard-ui/scripts/site.js @@ -704,36 +704,7 @@ var Dashboard = { showUserFlyout: function () { - require(['jqmpanel'], function () { - var html = '
'; - - html += '

'; - - html += '

'; - - html += '
'; - - html += '

'; - - html += '

'; - - html += '
'; - html += '
'; - - $(document.body).append(html); - - var userFlyout = document.querySelector('#userFlyout'); - ImageLoader.lazyChildren(userFlyout); - - $(userFlyout).panel({}).panel("open").on("panelclose", function () { - - $(this).off("panelclose").remove(); - }); - - ConnectionManager.user(window.ApiClient).then(function (user) { - Dashboard.updateUserFlyout(userFlyout, user); - }); - }); + Dashboard.navigate('mypreferencesmenu.html?userId=' + ApiClient.getCurrentUserId()); }, updateUserFlyout: function (elem, user) {