mirror of
https://github.com/jellyfin/jellyfin-web.git
synced 2024-11-17 19:08:18 -07:00
shorten image task delay
This commit is contained in:
parent
56a28632c7
commit
bfab5f2404
@ -1013,19 +1013,6 @@ var Dashboard = {
|
||||
|
||||
processLibraryUpdateNotification: function (data) {
|
||||
|
||||
if (Dashboard.newItemTimeout) {
|
||||
clearTimeout(Dashboard.newItemTimeout);
|
||||
}
|
||||
|
||||
Dashboard.newItemTimeout = setTimeout(function () {
|
||||
|
||||
Dashboard.onNewItemTimerStopped(data);
|
||||
|
||||
}, 60000);
|
||||
},
|
||||
|
||||
onNewItemTimerStopped: function (data) {
|
||||
|
||||
var newItems = data.ItemsAdded;
|
||||
|
||||
if (!newItems.length) {
|
||||
@ -1035,7 +1022,7 @@ var Dashboard = {
|
||||
ApiClient.getItems(Dashboard.getCurrentUserId(), {
|
||||
|
||||
Recursive: true,
|
||||
Limit: 2,
|
||||
Limit: 3,
|
||||
Filters: "IsNotFolder",
|
||||
SortBy: "DateCreated",
|
||||
SortOrder: "Descending",
|
||||
@ -1070,8 +1057,6 @@ var Dashboard = {
|
||||
WebNotifications.show(notification);
|
||||
}
|
||||
});
|
||||
|
||||
Dashboard.newItemTimeout = null;
|
||||
},
|
||||
|
||||
ensurePageTitle: function (page) {
|
||||
|
Loading…
Reference in New Issue
Block a user