fix: add dcLib to globals

This commit is contained in:
Sabir Hassan 2024-01-16 12:08:42 +05:00
parent 39762b36c6
commit 5d93346b52
2 changed files with 5 additions and 2 deletions

View File

@ -46,6 +46,7 @@ export const initFilter: { filter: FilterCache } = {
*/ */
export const globals: { export const globals: {
rootParam: string rootParam: string
dcLib: string
editor: any editor: any
viewer: any viewer: any
viewboxes: ViewboxCache viewboxes: ViewboxCache
@ -57,6 +58,7 @@ export const globals: {
[key: string]: any [key: string]: any
} = { } = {
rootParam: <string>'', rootParam: <string>'',
dcLib: '',
editor: { editor: {
startupSet: <boolean>false, startupSet: <boolean>false,
treeNodeLibraries: <any[] | null>[], treeNodeLibraries: <any[] | null>[],
@ -64,7 +66,7 @@ export const globals: {
libraries: <string[] | undefined>[], libraries: <string[] | undefined>[],
library: <string>'', library: <string>'',
table: <string>'', table: <string>'',
xlmaps: <string[] | undefined>[], xlmaps: <string[]>[],
filter: <FilterCache>{ filter: <FilterCache>{
cols: <any[]>[], cols: <any[]>[],
vals: <any[]>[], vals: <any[]>[],

View File

@ -137,11 +137,12 @@ export class AppService {
} }
globals.editor.xlmaps = res.xlmaps.map((xlmap: any) => xlmap[0]) globals.editor.xlmaps = res.xlmaps.map((xlmap: any) => xlmap[0])
globals.editor.treeNodeLibraries = treeNodeLibraries globals.editor.treeNodeLibraries = treeNodeLibraries
globals.editor.libraries = libraries globals.editor.libraries = libraries
globals.editor.startupSet = true globals.editor.startupSet = true
globals.dcLib = res.globvars[0].DCLIB
await this.licenceService.activation(res) await this.licenceService.activation(res)
}) })
.catch((err: any) => { .catch((err: any) => {