mirror of
https://github.com/hcengineering/platform.git
synced 2024-12-22 11:01:54 +03:00
Application header from the configuration (#4386)
Signed-off-by: Alexander Platov <sas_lord@mail.ru>
This commit is contained in:
parent
c6d6b48318
commit
0eb07283e5
@ -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')
|
||||
|
@ -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'}>
|
||||
|
@ -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>
|
||||
}
|
||||
})
|
||||
|
||||
|
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user