-
Notifications
You must be signed in to change notification settings - Fork 887
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
#1414 share channels #2859
Merged
FreeTubeBot
merged 5 commits into
FreeTubeApp:development
from
Alhuin:#1414_share_channels
Nov 14, 2022
Merged
#1414 share channels #2859
FreeTubeBot
merged 5 commits into
FreeTubeApp:development
from
Alhuin:#1414_share_channels
Nov 14, 2022
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- Update src/renderer/components/ft-share-button to handle Channels - Update english locale entries for 'Share channel'
- update youtubeShareURL() in src/renderer/components/ft-share-button
- implemented the new button in src/renderer/views/Channel
github-actions
bot
added
the
PR: waiting for review
For PRs that are complete, tested, and ready for review
label
Nov 12, 2022
ChunkyProgrammer
requested review from
ChunkyProgrammer,
absidue,
PikachuEXE and
efb4f5ff-1298-471a-8973-3d47447115dc
November 12, 2022 20:08
PikachuEXE
requested changes
Nov 13, 2022
efb4f5ff-1298-471a-8973-3d47447115dc
added
PR: changes requested
and removed
PR: waiting for review
For PRs that are complete, tested, and ready for review
labels
Nov 13, 2022
- renamed mediaType to shareTargetType in ft-share-button.js - switched logic from !isChannel to isVideo in ft-share-button.vue
- renamed target type in ft-share-button.vue - updated implementation in Channel.vue
auto-merge was automatically disabled
November 13, 2022 01:29
Head branch was pushed to by a user without write access
Alhuin
requested review from
PikachuEXE
and removed request for
absidue,
efb4f5ff-1298-471a-8973-3d47447115dc and
ChunkyProgrammer
November 13, 2022 01:38
efb4f5ff-1298-471a-8973-3d47447115dc
added
PR: waiting for review
For PRs that are complete, tested, and ready for review
and removed
PR: changes requested
labels
Nov 13, 2022
efb4f5ff-1298-471a-8973-3d47447115dc
requested review from
ChunkyProgrammer and
absidue
November 13, 2022 09:00
PikachuEXE
approved these changes
Nov 14, 2022
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tested locally
ChunkyProgrammer
approved these changes
Nov 14, 2022
efb4f5ff-1298-471a-8973-3d47447115dc
approved these changes
Nov 14, 2022
github-actions
bot
removed
the
PR: waiting for review
For PRs that are complete, tested, and ready for review
label
Nov 14, 2022
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
#1414 Add button to share channel link on channel views
Pull Request Type
Related issue
closes #1414
Description
Add a new share icon in the Channel view.
At first, I implemented this as a dropdown button but this wasn't pretty in terms of UI.
In a second step, I wrote a component ft-share-channel-button, but it was clearly a duplicate of the ft-share-button with less content.
I finally edited the ft-share-button so that it takes a new optionnal parameter:
mediaTypeshareTargetType:mediaTypeshareTargetType is 'Video')One consequence: The property getTimestamp is not required anymore.
I would have liked to do something like
required=this.mediaType === 'Video'
but could not make this work, so I implemented a mount() function to check the case where the component would be instanciated for a video without it, it will only console.error.Screenshots
Before
After
Testing
Click on the share icon on any Channel view.
Desktop
Additional context
This is my first contribution to an open source project and first time using VueJs and Electron, any feedback on the worflow or the code style will be greatly appreciated !