feat: add branding to the window title (#1850)

This commit is contained in:
Felix Nüsse
2022-03-24 12:01:19 +01:00
committed by GitHub
parent fca5fc5b87
commit f8dfbf7eee
2 changed files with 6 additions and 4 deletions

View File

@@ -28,6 +28,7 @@ import Breadcrumbs from "@/components/Breadcrumbs";
import Errors from "@/views/Errors";
import Preview from "@/views/files/Preview";
import Listing from "@/views/files/Listing";
import { name } from "@/utils/constants";
function clean(path) {
return path.endsWith("/") ? path.slice(0, -1) : path;
@@ -51,6 +52,7 @@ export default {
},
computed: {
...mapState(["req", "reload", "loading", "show"]),
name: () => name,
currentView() {
if (this.req.type == undefined) {
return null;
@@ -116,7 +118,7 @@ export default {
}
this.$store.commit("updateRequest", res);
document.title = `${res.name} - ${this.$route.name}`;
document.title = `${res.name} - ${this.$route.name} - ${this.name}`;
} catch (e) {
this.error = e;
} finally {