diff --git a/front/src/App.vue b/front/src/App.vue index 5d23e078e..2cc1be1d5 100644 --- a/front/src/App.vue +++ b/front/src/App.vue @@ -1,31 +1,33 @@ - + diff --git a/front/src/components/federation/UserFollowButton.vue b/front/src/components/federation/UserFollowButton.vue index 3029b86a7..cdd83abf3 100644 --- a/front/src/components/federation/UserFollowButton.vue +++ b/front/src/components/federation/UserFollowButton.vue @@ -2,8 +2,11 @@ import type { Actor } from '~/types' import { computed } from 'vue' +import { useI18n } from 'vue-i18n' import { useStore } from '~/store' +const { t } = useI18n() + interface Events { (e: 'unfollowed'): void (e: 'followed'): void @@ -39,13 +42,13 @@ const toggle = () => { > - {{ $t('components.audio.LibraryFollowButton.button.unfollow') }} + {{ t('components.audio.LibraryFollowButton.button.unfollow') }} - {{ $t('components.audio.LibraryFollowButton.button.cancel') }} + {{ t('components.audio.LibraryFollowButton.button.cancel') }} - {{ $t('components.audio.LibraryFollowButton.button.follow') }} + {{ t('components.audio.LibraryFollowButton.button.follow') }} diff --git a/front/src/components/playlists/PlaylistDropdown.vue b/front/src/components/playlists/PlaylistDropdown.vue index 2d8034628..064dc9bd1 100644 --- a/front/src/components/playlists/PlaylistDropdown.vue +++ b/front/src/components/playlists/PlaylistDropdown.vue @@ -95,7 +95,7 @@ const triggerFileInput = () => { {{ labels.export }}
import type { RouterLinkProps } from 'vue-router' +import { useAttrs } from 'vue' import Layout from '~/components/ui/Layout.vue' import Spacer from '~/components/ui/layout/Spacer.vue' @@ -20,13 +21,14 @@ const [headingLevel, title] = const numberOfColumnsPerItem = 'noItems' in props && props.noItems ? 1 : 'tinyItems' in props && props.tinyItems ? 2 : 'smallItems' in props && props['smallItems'] ? 3 : 4 +const { style, ...fallthroughProps } = useAttrs() const headerGrid = `auto / repeat(auto-fit, calc(46px * ${numberOfColumnsPerItem} + 32px * ${numberOfColumnsPerItem - 1}))`