mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
reduce system info refreshing from dashboard
This commit is contained in:
parent
c3af03c269
commit
e3d0113106
1 changed files with 4 additions and 4 deletions
|
@ -1159,7 +1159,7 @@ $(function () {
|
||||||
footerHtml += '</div>';
|
footerHtml += '</div>';
|
||||||
|
|
||||||
$(document.body).append(footerHtml);
|
$(document.body).append(footerHtml);
|
||||||
|
|
||||||
$(window).on("beforeunload", function () {
|
$(window).on("beforeunload", function () {
|
||||||
|
|
||||||
// Close the connection gracefully when possible
|
// Close the connection gracefully when possible
|
||||||
|
@ -1188,7 +1188,6 @@ $(document).on('pagebeforeshow', ".page", function () {
|
||||||
|
|
||||||
Dashboard.ensureHeader(page);
|
Dashboard.ensureHeader(page);
|
||||||
Dashboard.ensurePageTitle(page);
|
Dashboard.ensurePageTitle(page);
|
||||||
Dashboard.refreshSystemInfoFromServer();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
else {
|
else {
|
||||||
|
@ -1204,9 +1203,10 @@ $(document).on('pagebeforeshow', ".page", function () {
|
||||||
Dashboard.ensureHeader(page, user);
|
Dashboard.ensureHeader(page, user);
|
||||||
Dashboard.ensurePageTitle(page);
|
Dashboard.ensurePageTitle(page);
|
||||||
});
|
});
|
||||||
|
|
||||||
Dashboard.refreshSystemInfoFromServer();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (!ApiClient.isWebSocketOpen()) {
|
||||||
|
Dashboard.refreshSystemInfoFromServer();
|
||||||
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue