diff --git a/src/components/Channel.vue b/src/components/Channel.vue index 8ba6dd19..83862448 100644 --- a/src/components/Channel.vue +++ b/src/components/Channel.vue @@ -45,6 +45,7 @@ export default { this.getChannelData(); }, activated() { + if (this.channel && !this.channel.error) document.title = this.channel.name + " - Piped"; window.addEventListener("scroll", this.handleScroll); }, deactivated() { diff --git a/src/components/FeedPage.vue b/src/components/FeedPage.vue index 2ce13ffd..8760c7f6 100644 --- a/src/components/FeedPage.vue +++ b/src/components/FeedPage.vue @@ -20,11 +20,12 @@
thumbnail - {{ timeFormat(video.duration) }} + >{{ timeFormat(video.duration) }}

{{ video.title }}

@@ -66,10 +67,11 @@ export default { }; }, mounted() { - document.title = "Feed - Piped"; - this.fetchFeed().then(videos => (this.videos = videos)); }, + activated() { + document.title = "Feed - Piped"; + }, methods: { async fetchFeed() { return await this.fetchJson(this.apiUrl() + "/feed", { diff --git a/src/components/ImportPage.vue b/src/components/ImportPage.vue index f898cd70..16fefa52 100644 --- a/src/components/ImportPage.vue +++ b/src/components/ImportPage.vue @@ -71,6 +71,7 @@ export default { }, activated() { if (!this.authenticated) this.$router.push("/login"); + document.title = "Import - Piped"; }, methods: { fileChange() { diff --git a/src/components/LoginPage.vue b/src/components/LoginPage.vue index 3be179e8..60f967cf 100644 --- a/src/components/LoginPage.vue +++ b/src/components/LoginPage.vue @@ -45,6 +45,9 @@ export default { this.$router.push("/"); } }, + activated() { + document.title = "Login - Piped"; + }, methods: { login() { console.log("authToken" + this.hashCode(this.apiUrl())); diff --git a/src/components/Preferences.vue b/src/components/Preferences.vue index 5765c5b8..3fb2a477 100644 --- a/src/components/Preferences.vue +++ b/src/components/Preferences.vue @@ -1,6 +1,8 @@