mirror of
https://github.com/hcengineering/platform.git
synced 2026-09-29 21:15:06 +02:00
eqms-1618: fix server branding (#9907)
Signed-off-by: Alexey Zinoviev <alexey.zinoviev@xored.com>
This commit is contained in:
Vendored
+2
-1
@@ -106,7 +106,8 @@
|
||||
"STATS_URL": "http://huly.local:4900",
|
||||
"QUEUE_CONFIG": "localhost:19092",
|
||||
"FILES_URL": "http://huly.local:4030/blob/:workspace/:blobId/:filename",
|
||||
"OTEL_EXPORTER_OTLP_ENDPOINT": "http://huly.local:4318/v1/traces"
|
||||
"OTEL_EXPORTER_OTLP_ENDPOINT": "http://huly.local:4318/v1/traces",
|
||||
"BRANDING_PATH": "${workspaceRoot}/dev/branding.json"
|
||||
},
|
||||
"runtimeArgs": ["--nolazy", "-r", "ts-node/register"],
|
||||
"runtimeVersion": "20",
|
||||
|
||||
@@ -40,6 +40,7 @@ export interface LoginInfoWorkspace {
|
||||
endpoint: EndpointInfo
|
||||
role: AccountRole | null
|
||||
progress?: number
|
||||
branding?: string
|
||||
}
|
||||
|
||||
export interface LoginInfoWithWorkspaces extends LoginInfo {
|
||||
|
||||
@@ -1883,7 +1883,8 @@ export async function getLoginWithWorkspaceInfo (
|
||||
versionMinor: it.status.versionMinor,
|
||||
versionPatch: it.status.versionPatch
|
||||
},
|
||||
progress: it.status.processingProgress
|
||||
progress: it.status.processingProgress,
|
||||
branding: it.branding
|
||||
}
|
||||
])
|
||||
),
|
||||
|
||||
@@ -322,6 +322,7 @@ export interface LoginInfoWorkspace {
|
||||
role: AccountRole | null
|
||||
|
||||
progress?: number
|
||||
branding?: string
|
||||
}
|
||||
|
||||
export interface LoginInfoWithWorkspaces extends LoginInfo {
|
||||
|
||||
@@ -595,7 +595,10 @@ export class TSessionManager implements SessionManager {
|
||||
|
||||
workspace = this.workspaces.get(workspaceUuid)
|
||||
|
||||
const branding = null
|
||||
const branding =
|
||||
(workspaceInfo.branding !== undefined
|
||||
? Object.values(this.brandingMap).find((b) => b.key === workspaceInfo?.branding)
|
||||
: null) ?? null
|
||||
|
||||
if (workspace === undefined) {
|
||||
ctx.warn('open workspace', {
|
||||
@@ -698,7 +701,8 @@ export class TSessionManager implements SessionManager {
|
||||
},
|
||||
role: AccountRole.Owner,
|
||||
endpoint: { externalUrl: '', internalUrl: '', region: workspaceInfo.region ?? '' },
|
||||
progress: workspaceInfo.processingProgress
|
||||
progress: workspaceInfo.processingProgress,
|
||||
branding: workspaceInfo.branding
|
||||
}
|
||||
} else {
|
||||
this.workspaceInfoCache.delete(token.workspace)
|
||||
|
||||
Reference in New Issue
Block a user