mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
update cards
This commit is contained in:
parent
106870b066
commit
c0e29e7542
7 changed files with 73 additions and 78 deletions
|
@ -12,7 +12,13 @@
|
|||
|
||||
function enabled() {
|
||||
|
||||
var userId = Dashboard.getCurrentUserId();
|
||||
var apiClient = window.ApiClient;
|
||||
|
||||
if (!apiClient) {
|
||||
return false;
|
||||
}
|
||||
|
||||
var userId = apiClient.getCurrentUserId();
|
||||
|
||||
var val = appStorage.getItem('enableBackdrops-' + userId);
|
||||
|
||||
|
@ -46,7 +52,7 @@
|
|||
ParentId: parentId
|
||||
};
|
||||
|
||||
return apiClient.getItems(Dashboard.getCurrentUserId(), options).then(function (result) {
|
||||
return apiClient.getItems(apiClient.getCurrentUserId(), options).then(function (result) {
|
||||
|
||||
var images = result.Items.map(function (i) {
|
||||
return {
|
||||
|
@ -70,7 +76,7 @@
|
|||
return;
|
||||
}
|
||||
|
||||
getBackdropItemIds(apiClient, Dashboard.getCurrentUserId(), type, parentId).then(function (images) {
|
||||
getBackdropItemIds(apiClient, apiClient.getCurrentUserId(), type, parentId).then(function (images) {
|
||||
|
||||
if (images.length) {
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue