-
Notifications
You must be signed in to change notification settings - Fork 896
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
Migrate ft-slider to the composition api #6677
Conversation
@change="change" | ||
> | ||
<span> | ||
{{ t('Display Label', {label: label, value: displayLabel}) }} |
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.
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)
{{ 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' |
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.
I think useId should be used instead
https://github.com/FreeTubeApp/FreeTube/blob/development/src/renderer/composables/use-id-polyfill.js
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.
LGTM
Migrate
ft-slider
to compisition apiPull Request Type
Description
This PR migrates the
FtSlider
component to the composition API.Testing
Desktop