mirror of
https://github.com/hcengineering/platform.git
synced 2026-09-12 12:47:45 +02:00
EZQMS-951: Server branding (#5858)
Signed-off-by: Alexey Zinoviev <alexey.zinoviev@xored.com>
This commit is contained in:
@@ -26,7 +26,7 @@ export const TrainingRequestHTMLPresenter: Presenter<TrainingRequest> = async (
|
||||
request: TrainingRequest,
|
||||
control: TriggerControl
|
||||
) => {
|
||||
const front = getMetadata(serverCore.metadata.FrontUrl) ?? ''
|
||||
const front = control.branding?.front ?? getMetadata(serverCore.metadata.FrontUrl) ?? ''
|
||||
// TODO: Don't hardcode URLs, find a way to share routes info between front and server resources, and DRY
|
||||
const path = `${workbenchId}/${control.workspace.workspaceUrl}/${trainingId}/requests/${request._id}`
|
||||
const link = concatLink(front, path)
|
||||
|
||||
Reference in New Issue
Block a user