Merge pull request #566 from maartenvn/todo/pagetitle

Change page title to project name (#427)
This commit is contained in:
Rijk van Zanten
2020-10-07 09:28:27 -04:00
committed by GitHub
2 changed files with 8 additions and 1 deletions

View File

@@ -6,7 +6,7 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0, viewport-fit=cover">
<link rel="shortcut icon" href="/favicon.ico">
<link rel="manifest" href="/manifest.webmanifest" />
<title>Directus</title>
<title>Loading...</title>
</head>
<body class="light">
<noscript>

View File

@@ -95,6 +95,13 @@ export default defineComponent({
}
);
watch(
() => settingsStore.state.settings?.project_name,
(projectName) => {
document.title = projectName;
}
);
const appAccess = computed(() => {
if (!userStore.state.currentUser) return true;
return userStore.state.currentUser?.role?.app_access || false;