-
{{ 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 @@