@egovernments/digit-ui-libraries 1.3.11 → 1.3.12

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -2453,6 +2453,7 @@ var StoreService = {
2453
2453
  code: stateInfo.code,
2454
2454
  name: stateInfo.name,
2455
2455
  logoUrl: stateInfo.logoUrl,
2456
+ statelogo: stateInfo.statelogo,
2456
2457
  logoUrlWhite: stateInfo.logoUrlWhite,
2457
2458
  bannerUrl: stateInfo.bannerUrl
2458
2459
  },
@@ -2490,15 +2491,6 @@ var StoreService = {
2490
2491
  };
2491
2492
  })
2492
2493
  });
2493
- initData.modules.push({
2494
- module: "MCollect",
2495
- code: "MCollect",
2496
- tenants: initData.tenants.map(function (tenant) {
2497
- return {
2498
- code: tenant.code
2499
- };
2500
- })
2501
- });
2502
2494
  initData.modules.push({
2503
2495
  module: "HRMS",
2504
2496
  code: "HRMS",
@@ -2508,15 +2500,6 @@ var StoreService = {
2508
2500
  };
2509
2501
  })
2510
2502
  });
2511
- initData.modules.push({
2512
- module: "TL",
2513
- code: "TL",
2514
- tenants: initData.tenants.map(function (tenant) {
2515
- return {
2516
- code: tenant.code
2517
- };
2518
- })
2519
- });
2520
2503
  initData.modules.push({
2521
2504
  module: "Receipts",
2522
2505
  code: "Receipts",
@@ -2555,8 +2538,12 @@ var StoreService = {
2555
2538
  },
2556
2539
  defaultData: function (stateCode, moduleCode, language) {
2557
2540
  try {
2541
+ var moduleCodes = [];
2542
+ if (typeof moduleCode !== "string") moduleCode.forEach(function (code) {
2543
+ moduleCodes.push("rainmaker-" + code.toLowerCase());
2544
+ });
2558
2545
  var LocalePromise = LocalizationService.getLocale({
2559
- modules: ["rainmaker-" + moduleCode.toLowerCase()],
2546
+ modules: typeof moduleCode == "string" ? ["rainmaker-" + moduleCode.toLowerCase()] : moduleCodes,
2560
2547
  locale: language,
2561
2548
  tenantId: stateCode
2562
2549
  });