Open default homepage directly on navbar icon click

This commit is contained in:
Bnyro
2023-07-05 12:59:23 +02:00
parent 995f299a8d
commit 39d11063d6
3 changed files with 17 additions and 19 deletions

View File

@@ -532,6 +532,20 @@ const mixin = {
},
});
},
openHomePage(_this) {
let route;
switch (_this.getPreferenceString("homepage", "trending")) {
case "trending":
route = "/trending";
break;
case "feed":
route = "/feed";
break;
default:
break;
}
if (route !== undefined) _this.$router.push(route);
},
},
computed: {
authenticated(_this) {