mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
shorten image task delay
This commit is contained in:
parent
56a28632c7
commit
bfab5f2404
1 changed files with 1 additions and 16 deletions
|
@ -1013,19 +1013,6 @@ var Dashboard = {
|
||||||
|
|
||||||
processLibraryUpdateNotification: function (data) {
|
processLibraryUpdateNotification: function (data) {
|
||||||
|
|
||||||
if (Dashboard.newItemTimeout) {
|
|
||||||
clearTimeout(Dashboard.newItemTimeout);
|
|
||||||
}
|
|
||||||
|
|
||||||
Dashboard.newItemTimeout = setTimeout(function () {
|
|
||||||
|
|
||||||
Dashboard.onNewItemTimerStopped(data);
|
|
||||||
|
|
||||||
}, 60000);
|
|
||||||
},
|
|
||||||
|
|
||||||
onNewItemTimerStopped: function (data) {
|
|
||||||
|
|
||||||
var newItems = data.ItemsAdded;
|
var newItems = data.ItemsAdded;
|
||||||
|
|
||||||
if (!newItems.length) {
|
if (!newItems.length) {
|
||||||
|
@ -1035,7 +1022,7 @@ var Dashboard = {
|
||||||
ApiClient.getItems(Dashboard.getCurrentUserId(), {
|
ApiClient.getItems(Dashboard.getCurrentUserId(), {
|
||||||
|
|
||||||
Recursive: true,
|
Recursive: true,
|
||||||
Limit: 2,
|
Limit: 3,
|
||||||
Filters: "IsNotFolder",
|
Filters: "IsNotFolder",
|
||||||
SortBy: "DateCreated",
|
SortBy: "DateCreated",
|
||||||
SortOrder: "Descending",
|
SortOrder: "Descending",
|
||||||
|
@ -1070,8 +1057,6 @@ var Dashboard = {
|
||||||
WebNotifications.show(notification);
|
WebNotifications.show(notification);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
Dashboard.newItemTimeout = null;
|
|
||||||
},
|
},
|
||||||
|
|
||||||
ensurePageTitle: function (page) {
|
ensurePageTitle: function (page) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue