Use addVideo
instead of addVideos
for quick bookmark button
#5168
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Use
addVideo
instead ofaddVideos
for quick bookmark buttonPull Request Type
Description
As we already have a dedicated process for adding just one video to the playlist, we might as well use it for the quick bookmark button, as that always just adds one video. Another advantage is that the
addVideo
store action, doesn't need to clone the video object, because we know it's not used anywhere else as we just created it.I'm not expecting this improvement to be drastic enough to be noticeable without measuring tools, but it's still worth it as we are doing less work and using less memory.
Testing
Check that adding a video to the quick bookmark playlist through the dedicated button on a video thumbnail and on the watch page, still works.
Desktop