cloud-ide-core 2.0.87 → 2.0.88

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.
@@ -9,7 +9,7 @@ import { Router, ActivatedRoute } from '@angular/router';
9
9
  import { takeUntilDestroyed } from '@angular/core/rxjs-interop';
10
10
  import { BehaviorSubject, throwError, Observable, Subject, takeUntil, debounceTime, distinctUntilChanged } from 'rxjs';
11
11
  import { tap, catchError, map } from 'rxjs/operators';
12
- import { coreRoutesUrl, generateStringFromObject, cidePath, hostManagerRoutesUrl, MDesignationInsertUpdatePayload, generateObjectFromString, userRoutesUrl, AuthUserMstGetByIdPayload, customEncrypt, customDecrypt, AuthUserMstListPayload, academicsRoutesUrl } from 'cloud-ide-lms-model';
12
+ import { coreRoutesUrl, generateStringFromObject, cidePath, hostManagerRoutesUrl, MDesignationInsertUpdatePayload, MDesignation, generateObjectFromString, userRoutesUrl, AuthUserMstGetByIdPayload, customEncrypt, customDecrypt, AuthUserMstListPayload, academicsRoutesUrl } from 'cloud-ide-lms-model';
13
13
  import * as i1 from '@angular/common/http';
14
14
  import { HttpClient } from '@angular/common/http';
15
15
  import { NotificationService, CideEleDataGridComponent, CideEleButtonComponent, CideInputComponent, CideSelectComponent, CideTextareaComponent, CideIconComponent, CideEleDropdownComponent, ConfirmationService, CideEleGlobalNotificationsComponent, CideEleConfirmationModalComponent, CideEleJsonEditorComponent, CideEleFileInputComponent, CideEleFileImageDirective, CideFormFieldErrorComponent, CideEleFileManagerService, CideEleTabComponent, CideEleFloatingFeaturesService, CideEleToastNotificationComponent } from 'cloud-ide-element';
@@ -3958,12 +3958,20 @@ class CideCoreDesignationListComponent {
3958
3958
  console.log('🚀 CideCoreDesignationListComponent.loadDesignations() called');
3959
3959
  this.loading.set(true);
3960
3960
  this.error.set(null);
3961
- const requestBody = {
3961
+ const activeEntityId = this.appState.getActiveEntityId();
3962
+ if (!activeEntityId) {
3963
+ console.error('❌ No active entity ID found');
3964
+ this.error.set('No active entity selected');
3965
+ this.loading.set(false);
3966
+ return;
3967
+ }
3968
+ const requestBody = new MDesignation({
3962
3969
  total: this.totalItems(),
3963
3970
  pageIndex: this.currentPage(),
3964
3971
  pageSize: this.pageSize(),
3965
- query: this.searchTerm()
3966
- };
3972
+ query: this.searchTerm(),
3973
+ desg_entity_id_syen: activeEntityId
3974
+ });
3967
3975
  console.log('📋 Request body:', requestBody);
3968
3976
  if (!this.designationService) {
3969
3977
  console.error('❌ DesignationService is not available');