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

Migrate ft-slider to the composition api #6677

Merged

Conversation

MarmadileManteater
Copy link
Contributor

Migrate ft-slider to compisition api

Pull Request Type

  • refactoring - composition api migration

Description

This PR migrates the FtSlider component to the composition API.

Testing

  1. Open Theme settings
  2. Ensure UI scale slider still behaves as expected
  3. Open Player settings
  4. Ensure sliders still behave as expected
  5. Open subscription settings
  6. Ensure the slider still behaves as expected

Desktop

  • OS: LMDE
  • OS Version: 6
  • FreeTube version: 47d4103

@github-actions github-actions bot added the PR: waiting for review For PRs that are complete, tested, and ready for review label Jan 31, 2025
@FreeTubeBot FreeTubeBot enabled auto-merge (squash) January 31, 2025 03:01
@change="change"
>
<span>
{{ t('Display Label', {label: label, value: displayLabel}) }}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I may be wrong but I think we still use $t in the vue templates for the components we migrated to composition api (unless we're doing something wrong in the other components and need to update them)

Suggested change
{{ t('Display Label', {label: label, value: displayLabel}) }}
{{ $t('Display Label', {label: label, value: displayLabel}) }}


<script setup>
import { computed, ref } from 'vue'
import { randomUUID } from 'crypto'
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Member

@ChunkyProgrammer ChunkyProgrammer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@FreeTubeBot FreeTubeBot merged commit c436c5e into FreeTubeApp:development Feb 2, 2025
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 Feb 2, 2025
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