use name instead of instancename

This commit is contained in:
Felix Nüsse 2022-03-16 15:28:21 +01:00
parent 994c441a09
commit 8049b5ac4e

View File

@ -12,7 +12,7 @@ import ProfileSettings from "@/views/settings/Profile";
import Shares from "@/views/settings/Shares"; import Shares from "@/views/settings/Shares";
import Errors from "@/views/Errors"; import Errors from "@/views/Errors";
import store from "@/store"; import store from "@/store";
import { baseURL, name as instancename } from "@/utils/constants"; import { baseURL, name } from "@/utils/constants";
Vue.use(Router); Vue.use(Router);
@ -29,7 +29,7 @@ const router = new Router({
return next({ path: "/files" }); return next({ path: "/files" });
} }
document.title = "Login - " + instancename; document.title = "Login - " + name;
next(); next();
}, },
}, },
@ -140,7 +140,7 @@ const router = new Router({
}); });
router.beforeEach((to, from, next) => { router.beforeEach((to, from, next) => {
document.title = to.name + " - " + instancename; document.title = to.name + " - " + name;
if (to.matched.some((record) => record.meta.requiresAuth)) { if (to.matched.some((record) => record.meta.requiresAuth)) {
if (!store.getters.isLogged) { if (!store.getters.isLogged) {