Skip to content

Commit 09ecea2

Browse files
committed
feat(popup): show queue-all button with just one unwatched video, instead of at least 2
1 parent 9bb5b64 commit 09ecea2

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

popup/popup.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -177,8 +177,8 @@ const renderGroupVideo = (group, video) => {
177177
inNewTab = inNewTab || event && (event.which === 2 || event.metaKey);
178178

179179
if (video.queued) {
180-
// If video is in queue, wait a little to let the user know that
181-
// it will be removed from the queue as they open it.
180+
// If video is in queue, wait a little to let the user know
181+
// as it's removed from the queue before it's opened.
182182
videosMap[video.url].forEach((g) => {
183183
g.video.queued = false;
184184
if (g.video.$video) { g.video.$video.classList.remove('queued'); }
@@ -518,7 +518,7 @@ const setVideoPositions = (group) => {
518518
}
519519

520520
group.queueable = group.videos.filter(v => !v.watched && !v.queued).reverse();
521-
group.$queueAll.classList.toggle('hidden', group.queueable.length < 2);
521+
group.$queueAll.classList.toggle('hidden', group.queueable.length < 1);
522522

523523
group.videos.forEach((video, i) => {
524524
if (!video.$video) { return; }

0 commit comments

Comments
 (0)