Make ft-channel-bubble an actual link when it is being used as one #3980
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.
Make ft-channel-bubble an actual link when it is being used as one
Pull Request Type
Description
The channel bubble component is used in 4 places, twice for channel selection on the profile edit page and as links on the channel about tab for the featured channels and errored channels on the subscriptions page. Currently we just set the role of the element to link (
role="link"
) but it doesn't act like other links in FreeTube, right, middle and control/command clicking does nothing.This pull request replaces the
role="link"
in favour of using router-links, that way they behave as expected, meaning you can control/command and middle click on them to open the channel in a new window and right clicking brings up the context menu that allows you to copy the link or open it in a new window.Testing
Check that selecting and deselecting still work on the profile edit page, in both the "Subscriptions List" and "Other Channels" sections.
Check that the channel bubbles on the about tab of channels act as links, so clicking on them still takes you to the channel but also that the context menu with the copy link and open in new window entries show up.
Desktop