-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Make adding duplicate disabled by default #5044
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
8280cdf
4cd99fc
f76c50f
d717d96
ae798fa
41c563d
a2085e9
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -27,12 +27,25 @@ | |
<div | ||
class="optionsRow" | ||
> | ||
<ft-toggle-switch | ||
:label="$t('User Playlists.Playlists with Matching Videos')" | ||
:compact="true" | ||
:default-value="doSearchPlaylistsWithMatchingVideos" | ||
@change="doSearchPlaylistsWithMatchingVideos = !doSearchPlaylistsWithMatchingVideos" | ||
/> | ||
<div | ||
class="tightOptions" | ||
> | ||
<ft-toggle-switch | ||
class="matchingVideoToggle" | ||
:label="$t('User Playlists.Playlists with Matching Videos')" | ||
:compact="true" | ||
:default-value="doSearchPlaylistsWithMatchingVideos" | ||
@change="doSearchPlaylistsWithMatchingVideos = !doSearchPlaylistsWithMatchingVideos" | ||
/> | ||
<ft-toggle-switch | ||
v-if="anyPlaylistContainsVideosToBeAdded" | ||
class="allowDuplicateToggle" | ||
:label="$t('User Playlists.AddVideoPrompt.Allow Adding Duplicate Video(s)')" | ||
:compact="true" | ||
:default-value="addingDuplicateVideosEnabled" | ||
@change="addingDuplicateVideosEnabled = !addingDuplicateVideosEnabled" | ||
/> | ||
</div> | ||
<ft-select | ||
v-if="allPlaylists.length > 1" | ||
class="sortSelect" | ||
|
@@ -48,14 +61,20 @@ | |
<ft-flex-box> | ||
<div | ||
v-for="(playlist, index) in activePlaylists" | ||
:key="playlist._id" | ||
:key="`${playlist._id}-${playlistDisabled(playlist._id)}`" | ||
class="playlist-selector-container" | ||
:class="{ | ||
disabled: playlistDisabled(playlist._id), | ||
}" | ||
PikachuEXE marked this conversation as resolved.
Show resolved
Hide resolved
|
||
:aria-disabled="playlistDisabled(playlist._id)" | ||
> | ||
<ft-playlist-selector | ||
tabindex="0" | ||
:tabindex="playlistDisabled(playlist._id) ? -1 : 0" | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. thought (future): I would also like to refactor this to use |
||
:playlist="playlist" | ||
:index="index" | ||
:selected="selectedPlaylistIdList.includes(playlist._id)" | ||
:disabled="playlistDisabled(playlist._id)" | ||
:adding-duplicate-videos-enabled="addingDuplicateVideosEnabled" | ||
@selected="countSelected(playlist._id)" | ||
/> | ||
</div> | ||
|
Uh oh!
There was an error while loading. Please reload this page.