You've already forked filebrowser
mirror of
https://github.com/filebrowser/filebrowser.git
synced 2025-11-26 14:25:26 +08:00
feat: add branding to the window title (#1850)
This commit is contained in:
@@ -12,7 +12,7 @@ import ProfileSettings from "@/views/settings/Profile";
|
||||
import Shares from "@/views/settings/Shares";
|
||||
import Errors from "@/views/Errors";
|
||||
import store from "@/store";
|
||||
import { baseURL } from "@/utils/constants";
|
||||
import { baseURL, name } from "@/utils/constants";
|
||||
|
||||
Vue.use(Router);
|
||||
|
||||
@@ -29,7 +29,7 @@ const router = new Router({
|
||||
return next({ path: "/files" });
|
||||
}
|
||||
|
||||
document.title = "Login";
|
||||
document.title = "Login - " + name;
|
||||
next();
|
||||
},
|
||||
},
|
||||
@@ -140,7 +140,7 @@ const router = new Router({
|
||||
});
|
||||
|
||||
router.beforeEach((to, from, next) => {
|
||||
document.title = to.name;
|
||||
document.title = to.name + " - " + name;
|
||||
|
||||
if (to.matched.some((record) => record.meta.requiresAuth)) {
|
||||
if (!store.getters.isLogged) {
|
||||
|
||||
Reference in New Issue
Block a user