+
Pending Installations
+
The following components have been installed or updated:
+
+
+
Please restart the server to finish applying updates.
+
diff --git a/MediaBrowser.WebDashboard/Html/scripts/DashboardPage.js b/MediaBrowser.WebDashboard/Html/scripts/DashboardPage.js
index e61febb263..5b06851478 100644
--- a/MediaBrowser.WebDashboard/Html/scripts/DashboardPage.js
+++ b/MediaBrowser.WebDashboard/Html/scripts/DashboardPage.js
@@ -293,6 +293,7 @@
DashboardPage.renderApplicationUpdateInfo(dashboardInfo);
DashboardPage.renderPluginUpdateInfo(dashboardInfo);
+ DashboardPage.renderPendingInstallations(dashboardInfo.SystemInfo);
},
renderApplicationUpdateInfo: function (dashboardInfo) {
@@ -330,17 +331,43 @@
});
} else {
-
+
if (dashboardInfo.SystemInfo.HasPendingRestart) {
$('#pUpToDate', page).hide();
} else {
$('#pUpToDate', page).show();
}
-
+
$('#pUpdateNow', page).hide();
}
},
+ renderPendingInstallations: function (systemInfo) {
+
+ var page = $.mobile.activePage;
+
+ if (systemInfo.CompletedInstallations.length) {
+
+ $('#collapsiblePendingInstallations', page).show();
+
+ } else {
+ $('#collapsiblePendingInstallations', page).hide();
+
+ return;
+ }
+
+ var html = '';
+
+ for (var i = 0, length = systemInfo.CompletedInstallations.length; i < length; i++) {
+
+ var update = systemInfo.CompletedInstallations[i];
+
+ html += '
' + update.Name + ' (' + update.Version + ')
';
+ }
+
+ $('#pendingInstallations', page).html(html);
+ },
+
renderPluginUpdateInfo: function (dashboardInfo) {
// Only check once every 10 mins
@@ -354,12 +381,14 @@
ApiClient.getAvailablePluginUpdates().done(function (updates) {
+ var elem = $('#pPluginUpdates', page);
+
if (updates.length) {
- $('#collapsiblePluginUpdates', page).show();
+ elem.show();
} else {
- $('#collapsiblePluginUpdates', page).hide();
+ elem.hide();
return;
}
@@ -374,8 +403,8 @@
html += '
';
}
- $('#pPluginUpdates', page).html(html).trigger('create');
-
+ elem.html(html).trigger('create');
+
}).fail(function () {
Dashboard.showFooterNotification({ html: '
There was an error connecting to the remote Media Browser repository.', id: "MB3ConnectionError" });