mirror of
https://github.com/hcengineering/platform.git
synced 2025-04-13 19:58:09 +00:00
Qfix: fix setting ui metadata from config (#7025)
Signed-off-by: Alexey Zinoviev <alexey.zinoviev@xored.com>
This commit is contained in:
parent
bf35e3566f
commit
7eec2b55eb
@ -201,6 +201,7 @@ export async function configurePlatform (): Promise<void> {
|
|||||||
ipcMain.setTitle(title)
|
ipcMain.setTitle(title)
|
||||||
|
|
||||||
setMetadata(login.metadata.AccountsUrl, config.ACCOUNTS_URL)
|
setMetadata(login.metadata.AccountsUrl, config.ACCOUNTS_URL)
|
||||||
|
setMetadata(login.metadata.DisableSignUp, config.DISABLE_SIGNUP === 'true')
|
||||||
setMetadata(presentation.metadata.UploadURL, config.UPLOAD_URL)
|
setMetadata(presentation.metadata.UploadURL, config.UPLOAD_URL)
|
||||||
setMetadata(presentation.metadata.FilesURL, config.FILES_URL)
|
setMetadata(presentation.metadata.FilesURL, config.FILES_URL)
|
||||||
setMetadata(presentation.metadata.CollaboratorUrl, config.COLLABORATOR_URL)
|
setMetadata(presentation.metadata.CollaboratorUrl, config.COLLABORATOR_URL)
|
||||||
|
@ -28,6 +28,7 @@ export interface Config {
|
|||||||
PUSH_PUBLIC_KEY: string
|
PUSH_PUBLIC_KEY: string
|
||||||
ANALYTICS_COLLECTOR_URL?: string
|
ANALYTICS_COLLECTOR_URL?: string
|
||||||
AI_URL?:string
|
AI_URL?:string
|
||||||
|
DISABLE_SIGNUP?: string
|
||||||
BRANDING_URL?: string
|
BRANDING_URL?: string
|
||||||
PREVIEW_CONFIG: string
|
PREVIEW_CONFIG: string
|
||||||
UPLOAD_CONFIG: string
|
UPLOAD_CONFIG: string
|
||||||
|
@ -151,7 +151,7 @@ export interface Config {
|
|||||||
BRANDING_URL?: string
|
BRANDING_URL?: string
|
||||||
TELEGRAM_BOT_URL?: string
|
TELEGRAM_BOT_URL?: string
|
||||||
AI_URL?:string
|
AI_URL?:string
|
||||||
|
DISABLE_SIGNUP?: string
|
||||||
// Could be defined for dev environment
|
// Could be defined for dev environment
|
||||||
FRONT_URL?: string
|
FRONT_URL?: string
|
||||||
PREVIEW_CONFIG?: string
|
PREVIEW_CONFIG?: string
|
||||||
@ -292,6 +292,7 @@ export async function configurePlatform() {
|
|||||||
// tryOpenInDesktopApp(config.APP_PROTOCOL ?? 'huly://')
|
// tryOpenInDesktopApp(config.APP_PROTOCOL ?? 'huly://')
|
||||||
|
|
||||||
setMetadata(login.metadata.AccountsUrl, config.ACCOUNTS_URL)
|
setMetadata(login.metadata.AccountsUrl, config.ACCOUNTS_URL)
|
||||||
|
setMetadata(login.metadata.DisableSignUp, config.DISABLE_SIGNUP === 'true')
|
||||||
setMetadata(presentation.metadata.FilesURL, config.FILES_URL)
|
setMetadata(presentation.metadata.FilesURL, config.FILES_URL)
|
||||||
setMetadata(presentation.metadata.UploadURL, config.UPLOAD_URL)
|
setMetadata(presentation.metadata.UploadURL, config.UPLOAD_URL)
|
||||||
setMetadata(presentation.metadata.CollaboratorUrl, config.COLLABORATOR_URL)
|
setMetadata(presentation.metadata.CollaboratorUrl, config.COLLABORATOR_URL)
|
||||||
|
Loading…
Reference in New Issue
Block a user