From 89f41cdea241d38e05a7fdd7db4dc2759a583804 Mon Sep 17 00:00:00 2001 From: Luke Pulverenti Date: Sat, 13 Aug 2016 20:52:19 -0400 Subject: [PATCH] update dashboard refresh --- dashboard-ui/scripts/site.js | 24 +++--------------------- 1 file changed, 3 insertions(+), 21 deletions(-) diff --git a/dashboard-ui/scripts/site.js b/dashboard-ui/scripts/site.js index 59371218dd..ffafdf2110 100644 --- a/dashboard-ui/scripts/site.js +++ b/dashboard-ui/scripts/site.js @@ -165,9 +165,9 @@ var Dashboard = { Dashboard.hideServerRestartWarning(); - if (Dashboard.initialServerVersion != info.Version) { + if (Dashboard.initialServerVersion != info.Version && !AppInfo.isNativeApp) { - Dashboard.showDashboardRefreshNotification(); + window.location.reload(true); } } }, @@ -195,24 +195,6 @@ var Dashboard = { } }, - showDashboardRefreshNotification: function () { - - if (AppInfo.isNativeApp) { - return; - } - - var html = '' + Globalize.translate('MessagePleaseRefreshPage') + ''; - - html += ''; - - Dashboard.showFooterNotification({ id: "dashboardVersionWarning", html: html, forceShow: true, allowHide: false }); - }, - - reloadPage: function () { - - window.location.reload(true); - }, - showFooterNotification: function (options) { var removeOnHide = !options.id; @@ -437,7 +419,7 @@ var Dashboard = { // If this is back to false, the restart completed if (!info.HasPendingRestart) { - Dashboard.reloadPage(); + window.location.reload(true); } else { Dashboard.retryReload(retryCount); }