Skip to content

Commit

Permalink
Fix quick bookmark buttons appearing for remote playlists (#4592)
Browse files Browse the repository at this point in the history
  • Loading branch information
kommunarr authored Jan 23, 2024
1 parent e4ca3db commit f763b00
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/renderer/components/playlist-info/playlist-info.vue
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@
</h2>
<p>
{{ videoCount }} {{ $t("Playlist.Videos") }}
<span v-if="!hideViews && infoSource !== 'user'">
<span v-if="!hideViews && !isUserPlaylist">
- {{ viewCount }} {{ $t("Playlist.Views") }}
</span>
<span>- </span>
Expand Down Expand Up @@ -79,7 +79,7 @@
class="channelShareWrapper"
>
<router-link
v-if="infoSource !== 'user' && channelId"
v-if="!isUserPlaylist && channelId"
class="playlistChannel"
:to="`/channel/${channelId}`"
>
Expand Down Expand Up @@ -122,7 +122,7 @@
/>

<ft-icon-button
v-if="!editMode && infoSource === 'user'"
v-if="!editMode && isUserPlaylist"
:title="$t('User Playlists.Edit Playlist Info')"
:icon="['fas', 'edit']"
theme="secondary"
Expand All @@ -136,21 +136,21 @@
@click="toggleCopyVideosPrompt"
/>
<ft-icon-button
v-if="!editMode && !markedAsQuickBookmarkTarget"
v-if="!editMode && isUserPlaylist && !markedAsQuickBookmarkTarget"
:title="$t('User Playlists.Enable Quick Bookmark With This Playlist')"
:icon="['fas', 'link']"
theme="secondary"
@click="enableQuickBookmarkForThisPlaylist"
/>
<ft-icon-button
v-if="!editMode && markedAsQuickBookmarkTarget"
v-if="!editMode && isUserPlaylist && markedAsQuickBookmarkTarget"
:title="$t('User Playlists.Disable Quick Bookmark')"
:icon="['fas', 'link-slash']"
theme="secondary"
@click="disableQuickBookmark"
/>
<ft-icon-button
v-if="!editMode && infoSource === 'user' && videoCount > 0"
v-if="!editMode && isUserPlaylist && videoCount > 0"
:title="$t('User Playlists.Remove Watched Videos')"
:icon="['fas', 'eye-slash']"
theme="primary"
Expand Down

0 comments on commit f763b00

Please sign in to comment.