Compare commits

...

2 Commits

Author SHA1 Message Date
Jason Henriquez
c55eebe3da Add page-specific titles for each feed type 2023-11-25 10:02:06 -06:00
Jason Henriquez
1831912817 Remove unneeded ref classes and currentLocale computed property 2023-11-25 09:31:01 -06:00
10 changed files with 16 additions and 15 deletions

View File

@ -9,12 +9,12 @@
v-if="lastRefreshTimestamp"
class="lastRefreshTimestamp"
>
{{ $t('Subscriptions.Feed last updated', { date: lastRefreshTimestamp }) }}
{{ $t('Feed.Feed Last Updated', { feedName: title, date: lastRefreshTimestamp }) }}
</p>
<ft-icon-button
:icon="['fas', 'sync']"
class="refreshButton"
:title="title"
:title="$t('Feed.Refresh Feed', { subscriptionName: title })"
:size="12"
theme="primary"
@click="$emit('click')"

View File

@ -7,6 +7,7 @@
:is-community="true"
:initial-data-limit="20"
:last-refresh-timestamp="lastCommunityRefreshTimestamp"
:title="$t('Global.Community')"
@refresh="loadPostsForSubscriptionsFromRemote"
/>
</template>

View File

@ -5,6 +5,7 @@
:error-channels="errorChannels"
:attempted-fetch="attemptedFetch"
:last-refresh-timestamp="lastLiveRefreshTimestamp"
:title="$t('Global.Live')"
@refresh="loadVideosForSubscriptionsFromRemote"
/>
</template>

View File

@ -5,6 +5,7 @@
:error-channels="errorChannels"
:attempted-fetch="attemptedFetch"
:last-refresh-timestamp="lastShortRefreshTimestamp"
:title="$t('Global.Shorts')"
@refresh="loadVideosForSubscriptionsFromRemote"
/>
</template>

View File

@ -47,6 +47,10 @@ export default defineComponent({
lastRefreshTimestamp: {
type: String,
required: true
},
title: {
type: String,
required: true
}
},
data: function () {
@ -55,10 +59,6 @@ export default defineComponent({
}
},
computed: {
currentLocale: function () {
return this.$i18n.locale.replace('_', '-')
},
activeVideoList: function () {
if (this.videoList.length < this.dataLimit) {
return this.videoList

View File

@ -57,9 +57,8 @@
</ft-flex-box>
<ft-refresh-widget
v-if="!isLoading"
class="ref"
:last-refresh-timestamp="lastRefreshTimestamp"
:title="$t('Subscriptions.Refresh Subscriptions')"
:title="title"
@click="$emit('refresh')"
/>
</div>

View File

@ -5,6 +5,7 @@
:error-channels="errorChannels"
:last-refresh-timestamp="lastVideoRefreshTimestamp"
:attempted-fetch="attemptedFetch"
:title="$t('Global.Videos')"
@refresh="loadVideosForSubscriptionsFromRemote"
/>
</template>

View File

@ -15,9 +15,8 @@
</ft-card>
<ft-refresh-widget
v-if="!isLoading"
class="ref"
:last-refresh-timestamp="lastPopularRefreshTimestamp"
:title="$t('Refresh Most Popular')"
:title="$t('Most Popular')"
@click="fetchPopularInfo"
/>
</div>

View File

@ -88,7 +88,7 @@
<ft-refresh-widget
v-if="!isLoading"
:last-refresh-timestamp="lastTrendingRefreshTimestamp"
:title="$t('Refresh Trending')"
:title="$t('Trending.Trending')"
@click="getTrendingInfo(true)"
/>
</div>

View File

@ -106,8 +106,6 @@ Subscriptions:
Empty Channels: Your subscribed channels currently does not have any videos.
'Getting Subscriptions. Please wait.': Getting Subscriptions. Please wait.
Empty Posts: Your subscribed channels currently do not have any posts.
Feed last updated: 'Feed last updated: {date}'
Refresh Subscriptions: Refresh Subscriptions
Load More Videos: Load More Videos
Load More Posts: Load More Posts
Subscriptions Tabs: Subscriptions Tabs
@ -130,8 +128,9 @@ Trending:
Movies: Movies
Trending Tabs: Trending Tabs
Most Popular: Most Popular
Refresh Most Popular: Refresh Most Popular
Refresh Trending: Refresh Trending
Feed:
Feed Last Updated: '{feedName} feed last updated: {date}'
Refresh Feed: Refresh {subscriptionName}
Playlists: Playlists
User Playlists:
Your Playlists: Your Playlists