mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
Cleanup logs and make playlists public by default
This commit is contained in:
parent
6c226ba59f
commit
bae48c4023
3 changed files with 8 additions and 5 deletions
|
@ -170,8 +170,9 @@ function populatePlaylists(editorOptions: PlaylistEditorOptions, panel: DialogEl
|
|||
...playlist,
|
||||
permissions
|
||||
}))
|
||||
.catch((err) => {
|
||||
console.warn('[PlaylistEditor] Failed to fetch playlist permissions', err);
|
||||
.catch(err => {
|
||||
// If a user doesn't have access, then the request will 404 and throw
|
||||
console.info('[PlaylistEditor] Failed to fetch playlist permissions', err);
|
||||
|
||||
return playlist;
|
||||
});
|
||||
|
@ -231,7 +232,7 @@ function getEditorHtml(items: string[]) {
|
|||
html += `
|
||||
<div class="checkboxContainer checkboxContainer-withDescription">
|
||||
<label>
|
||||
<input type="checkbox" is="emby-checkbox" id="chkPlaylistPublic" />
|
||||
<input type="checkbox" is="emby-checkbox" id="chkPlaylistPublic" checked />
|
||||
<span>${globalize.translate('PlaylistPublic')}</span>
|
||||
</label>
|
||||
<div class="fieldDescription checkboxFieldDescription">
|
||||
|
|
|
@ -128,8 +128,9 @@ function showContextMenu(card, options = {}) {
|
|||
userId: apiClient.getCurrentUserId()
|
||||
})
|
||||
.then(({ data }) => data)
|
||||
.catch(() => {
|
||||
.catch(err => {
|
||||
// If a user doesn't have access, then the request will 404 and throw
|
||||
console.info('[Shortcuts] Failed to fetch playlist permissions', err);
|
||||
return { CanEdit: false };
|
||||
}) :
|
||||
// Not a playlist item
|
||||
|
|
|
@ -39,8 +39,9 @@ async function init(page, item) {
|
|||
playlistId: item.Id,
|
||||
userId: apiClient.getCurrentUserId()
|
||||
})
|
||||
.catch(() => {
|
||||
.catch(err => {
|
||||
// If a user doesn't have access, then the request will 404 and throw
|
||||
console.info('[PlaylistViewer] Failed to fetch playlist permissions', err);
|
||||
return { data: {} };
|
||||
});
|
||||
isEditable = !!data.CanEdit;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue