Skip to content
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

Move hideOutlines to the utils store instead of using provide/inject #4246

Merged
merged 1 commit into from
Nov 17, 2023

Conversation

absidue
Copy link
Member

@absidue absidue commented Oct 28, 2023

Move hideOutlines to the utils store instead of using provide/inject

Pull Request Type

  • Refactor/Cleanup

Related issue

#3850 (original pull request)

Description

In #3850 I decided to use Vue's provide/inject pattern to allow all components to show and hide outlines, while that seemed like a good idea at the time, I've since decided that it makes more sense to use the store for that, as we don't use provide/inject for anything else in FreeTube.

Testing

Showing outlines

  1. Press TAB anywhere in FreeTube
  2. Inside prompts and tabs (channel, trending, subscriptions) press the left and right arrow keys

Hiding outlines

Click anywhere

Desktop

  • OS: Windows
  • OS Version: 10
  • FreeTube version: 0.19.1

@FreeTubeBot FreeTubeBot enabled auto-merge (squash) October 28, 2023 14:28
@github-actions github-actions bot added the PR: waiting for review For PRs that are complete, tested, and ready for review label Oct 28, 2023
@FreeTubeBot FreeTubeBot merged commit 582df95 into FreeTubeApp:development Nov 17, 2023
5 checks passed
@github-actions github-actions bot removed the PR: waiting for review For PRs that are complete, tested, and ready for review label Nov 17, 2023
@absidue absidue deleted the hide-outlines-store branch November 17, 2023 08:42
PikachuEXE added a commit to PikachuEXE/FreeTube that referenced this pull request Nov 21, 2023
* development:
  Update to silently allow channel links (with IDs) (FreeTubeApp#4347)
  Add hide channel option directly to More Options menu (FreeTubeApp#4228)
  Translated using Weblate (Chinese (Simplified))
  Translated using Weblate (Spanish)
  Make landing page configurable (FreeTubeApp#4200)
  Bump @silvermine/videojs-quality-selector from 1.3.0 to 1.3.1 (FreeTubeApp#4362)
  Bump electron from 27.0.4 to 27.1.0 (FreeTubeApp#4363)
  Bump the eslint group with 1 update (FreeTubeApp#4360)
  Bump actions/github-script from 6 to 7 (FreeTubeApp#4361)
  add image to poll & updated quiz style (FreeTubeApp#4318)
  Move hideOutlines to the utils store instead of using provide/inject (FreeTubeApp#4246)
  Translated using Weblate (Kurdish (Central))
  Translated using Weblate (English (United Kingdom))
  Translated using Weblate (French)
  Translated using Weblate (German)
  Added translation using Weblate (Kurdish (Central))
  Translated using Weblate (Slovak)

# Conflicts:
#	src/renderer/components/ft-list-video/ft-list-video.js
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants