mirror of
https://github.com/TeamPiped/Piped.git
synced 2024-08-30 18:43:17 +00:00
feed: take user to login page if not logged in
This commit is contained in:
parent
8e306ab311
commit
f07cb822aa
@ -45,11 +45,13 @@ export default {
|
||||
},
|
||||
},
|
||||
mounted() {
|
||||
this.fetchFeed().then(videos => {
|
||||
this.videosStore = videos;
|
||||
this.loadMoreVideos();
|
||||
this.updateWatched(this.videos);
|
||||
});
|
||||
if (this.authenticated)
|
||||
this.fetchFeed().then(videos => {
|
||||
this.videosStore = videos;
|
||||
this.loadMoreVideos();
|
||||
this.updateWatched(this.videos);
|
||||
});
|
||||
else this.$router.push("/login");
|
||||
},
|
||||
activated() {
|
||||
document.title = this.$t("titles.feed") + " - Piped";
|
||||
|
Loading…
Reference in New Issue
Block a user