-
+
+
+
diff --git a/dashboard-ui/scripts/dashboardpage.js b/dashboard-ui/scripts/dashboardpage.js
index d5705a6c43..004465f246 100644
--- a/dashboard-ui/scripts/dashboardpage.js
+++ b/dashboard-ui/scripts/dashboardpage.js
@@ -344,6 +344,12 @@
} else {
$('#btnUpdateApplication', page).button('enable');
}
+
+ if (dashboardInfo.SystemInfo.CanSelfRestart) {
+ $('.btnRestartContainer', page).removeClass('hide');
+ } else {
+ $('.btnRestartContainer', page).addClass('hide');
+ }
DashboardPage.renderApplicationUpdateInfo(dashboardInfo);
DashboardPage.renderPluginUpdateInfo(dashboardInfo);
diff --git a/dashboard-ui/scripts/site.js b/dashboard-ui/scripts/site.js
index 624ac77642..05b0483d76 100644
--- a/dashboard-ui/scripts/site.js
+++ b/dashboard-ui/scripts/site.js
@@ -158,7 +158,7 @@ var Dashboard = {
Dashboard.getCurrentUser().done(function (currentUser) {
if (currentUser.Configuration.IsAdministrator) {
- Dashboard.showServerRestartWarning();
+ Dashboard.showServerRestartWarning(info);
}
});
@@ -252,10 +252,13 @@ var Dashboard = {
},
- showServerRestartWarning: function () {
+ showServerRestartWarning: function (systemInfo) {
var html = 'Please restart Media Browser Server to finish updating.';
- html += '';
+
+ if (systemInfo.CanSelfRestart) {
+ html += '';
+ }
Dashboard.showFooterNotification({ id: "serverRestartWarning", html: html, forceShow: true, allowHide: false });
},