Merge pull request #5449 from thornbill/new-playlist-public

Add public access option when creating playlist
This commit is contained in:
Joshua M. Boniface
2024-05-05 21:30:28 -04:00
committed by GitHub
2 changed files with 14 additions and 0 deletions
@@ -79,6 +79,7 @@ function createPlaylist(dlg: DialogElement) {
.createPlaylist({
createPlaylistDto: {
Name: dlg.querySelector<HTMLInputElement>('#txtNewPlaylistName')?.value,
IsPublic: dlg.querySelector<HTMLInputElement>('#chkPlaylistPublic')?.checked,
Ids: itemIds?.split(','),
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 += '</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
html += '</div>';
+2
View File
@@ -1262,6 +1262,8 @@
"PlayCount": "Play count",
"Played": "Played",
"PlayFromBeginning": "Play from beginning",
"PlaylistPublic": "Allow public access",
"PlaylistPublicDescription": "Allow this playlist to be viewed by any logged in user.",
"Playlists": "Playlists",
"PlayNext": "Play next",
"PlayNextEpisodeAutomatically": "Play next episode automatically",