Application header from the configuration (#4386)

Signed-off-by: Alexander Platov <sas_lord@mail.ru>
This commit is contained in:
Alexander Platov 2024-01-19 11:12:40 +03:00 committed by GitHub
parent c6d6b48318
commit 0eb07283e5
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 5 additions and 2 deletions

View File

@ -207,6 +207,7 @@ export async function configurePlatform() {
// Disable for now, since it causes performance issues on linux/docker/kubernetes boxes for now.
setMetadata(client.metadata.UseProtocolCompression, true)
setMetadata(uiPlugin.metadata.PlatformTitle, config.TITLE ?? 'Platform')
setMetadata(workbench.metadata.PlatformTitle, config.TITLE ?? 'Platform')
setDefaultLanguage(config.DEFAULT_LANGUAGE ?? 'en')
setMetadata(workbench.metadata.DefaultApplication, 'tracker')

View File

@ -167,7 +167,7 @@
{:else if status.severity !== Severity.OK}
<StatusComponent {status} />
{:else}
<span class="logo-status">Zenflow</span>
<span class="logo-status">{getMetadata(uiPlugin.metadata.PlatformTitle)}</span>
{/if}
</div>
<div class="flex-row-reverse" style:-webkit-app-region={'no-drag'}>

View File

@ -101,7 +101,8 @@ export const uis = plugin(uiId, {
metadata: {
DefaultApplication: '' as Metadata<AnyComponent>,
Routes: '' as Metadata<Map<string, AnyComponent>>,
Languages: '' as Metadata<string[]>
Languages: '' as Metadata<string[]>,
PlatformTitle: '' as Metadata<string>
}
})

View File

@ -102,6 +102,7 @@ export async function configurePlatform() {
addLocation(calendarId, () => import(/* webpackChunkName: "calendar" */ '@hcengineering/calendar-resources'))
addLocation(trackerId, () => import(/* webpackChunkName: "tracker" */ '@hcengineering/tracker-resources'))
setMetadata(uiPlugin.metadata.PlatformTitle, 'Tracker')
setMetadata(workbench.metadata.PlatformTitle, 'Tracker')
setMetadata(client.metadata.FilterModel, true)