mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
Add public access option when creating playlist
This commit is contained in:
parent
850ac3837a
commit
8fa2fd071f
2 changed files with 14 additions and 0 deletions
|
@ -79,6 +79,7 @@ function createPlaylist(dlg: DialogElement) {
|
||||||
.createPlaylist({
|
.createPlaylist({
|
||||||
createPlaylistDto: {
|
createPlaylistDto: {
|
||||||
Name: dlg.querySelector<HTMLInputElement>('#txtNewPlaylistName')?.value,
|
Name: dlg.querySelector<HTMLInputElement>('#txtNewPlaylistName')?.value,
|
||||||
|
IsPublic: dlg.querySelector<HTMLInputElement>('#chkPlaylistPublic')?.checked,
|
||||||
Ids: itemIds?.split(','),
|
Ids: itemIds?.split(','),
|
||||||
UserId: apiClient.getCurrentUserId()
|
UserId: apiClient.getCurrentUserId()
|
||||||
}
|
}
|
||||||
|
@ -197,6 +198,17 @@ function getEditorHtml(items: string[]) {
|
||||||
html += `<input is="emby-input" type="text" id="txtNewPlaylistName" required="required" label="${globalize.translate('LabelName')}"${autoFocus} />`;
|
html += `<input is="emby-input" type="text" id="txtNewPlaylistName" required="required" label="${globalize.translate('LabelName')}"${autoFocus} />`;
|
||||||
html += '</div>';
|
html += '</div>';
|
||||||
|
|
||||||
|
html += `
|
||||||
|
<div class="checkboxContainer checkboxContainer-withDescription">
|
||||||
|
<label>
|
||||||
|
<input type="checkbox" is="emby-checkbox" id="chkPlaylistPublic" />
|
||||||
|
<span>${globalize.translate('PlaylistPublic')}</span>
|
||||||
|
</label>
|
||||||
|
<div class="fieldDescription checkboxFieldDescription">
|
||||||
|
${globalize.translate('PlaylistPublicDescription')}
|
||||||
|
</div>
|
||||||
|
</div>`;
|
||||||
|
|
||||||
// newPlaylistInfo
|
// newPlaylistInfo
|
||||||
html += '</div>';
|
html += '</div>';
|
||||||
|
|
||||||
|
|
|
@ -1257,6 +1257,8 @@
|
||||||
"PlayCount": "Play count",
|
"PlayCount": "Play count",
|
||||||
"Played": "Played",
|
"Played": "Played",
|
||||||
"PlayFromBeginning": "Play from beginning",
|
"PlayFromBeginning": "Play from beginning",
|
||||||
|
"PlaylistPublic": "Allow public access",
|
||||||
|
"PlaylistPublicDescription": "Allow this playlist to be viewed by any logged in user.",
|
||||||
"Playlists": "Playlists",
|
"Playlists": "Playlists",
|
||||||
"PlayNext": "Play next",
|
"PlayNext": "Play next",
|
||||||
"PlayNextEpisodeAutomatically": "Play next episode automatically",
|
"PlayNextEpisodeAutomatically": "Play next episode automatically",
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue