mirror of
https://github.com/directus/directus.git
synced 2026-04-25 03:00:53 -04:00
Merge pull request #566 from maartenvn/todo/pagetitle
Change page title to project name (#427)
This commit is contained in:
@@ -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>
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user