show channel count in subscriptions page

This commit is contained in:
Bnyro 2022-07-27 07:52:25 +02:00
parent a4588b643f
commit 8c45a5a714
2 changed files with 11 additions and 6 deletions

View file

@ -1,12 +1,14 @@
<template>
<h1 class="font-bold text-center" v-t="'titles.subscriptions'" />
<div v-if="authenticated">
<button class="btn mr-0.5">
<router-link to="/import" v-t="'actions.import_from_json'" />
</button>
<button class="btn" @click="exportHandler" v-t="'actions.export_to_json'" />
<div v-if="authenticated" class="flex justify-between w-full">
<div>
<button class="btn mr-0.5">
<router-link to="/import" v-t="'actions.import_from_json'" />
</button>
<button class="btn" @click="exportHandler" v-t="'actions.export_to_json'" />
</div>
<i18n-t keypath="subscriptions.subscribed_channels_count">{{ subscriptions.length }}</i18n-t>
</div>
<hr />

View file

@ -129,5 +129,8 @@
"music_videos": "YT Music: Videos",
"music_albums": "YT Music: Albums",
"music_playlists": "YT Music: Playlists"
},
"subscriptions": {
"subscribed_channels_count": "Subscribed to: {0}"
}
}