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

View File

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