cloud-ide-core 2.0.91 → 2.0.92
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.
|
@@ -3907,10 +3907,14 @@ class CideCoreDesignationListComponent {
|
|
|
3907
3907
|
hasPreviousPage = computed(() => this.currentPage() > 1, ...(ngDevMode ? [{ debugName: "hasPreviousPage" }] : []));
|
|
3908
3908
|
// Grade level options for dropdown
|
|
3909
3909
|
gradeLevelOptions = computed(() => {
|
|
3910
|
-
|
|
3910
|
+
const options = this.gradeLevels()
|
|
3911
|
+
.filter(gradeLevel => gradeLevel.sydsgl_isactive !== false) // Only show active grade levels
|
|
3912
|
+
.map(gradeLevel => ({
|
|
3911
3913
|
value: gradeLevel._id || '',
|
|
3912
3914
|
label: gradeLevel.sydsgl_name || 'Unknown'
|
|
3913
3915
|
}));
|
|
3916
|
+
console.log('📋 Grade level options computed:', options);
|
|
3917
|
+
return options;
|
|
3914
3918
|
}, ...(ngDevMode ? [{ debugName: "gradeLevelOptions" }] : []));
|
|
3915
3919
|
// Department options for dropdown
|
|
3916
3920
|
departmentOptions = computed(() => {
|
|
@@ -4079,6 +4083,7 @@ class CideCoreDesignationListComponent {
|
|
|
4079
4083
|
const requestBody = new MGradeLevel({
|
|
4080
4084
|
pageIndex: 1,
|
|
4081
4085
|
pageSize: 100, // Load all grade levels for dropdown
|
|
4086
|
+
pagination: false, // Disable pagination to get all results
|
|
4082
4087
|
sydsgl_entity_id_syen: activeEntityId
|
|
4083
4088
|
});
|
|
4084
4089
|
this.gradeLevelService.getGradeLevelList(requestBody)
|
|
@@ -4089,7 +4094,10 @@ class CideCoreDesignationListComponent {
|
|
|
4089
4094
|
if (response?.success) {
|
|
4090
4095
|
console.log('✅ Grade levels loaded successfully:', response.data);
|
|
4091
4096
|
const gradeLevelData = response?.data || [];
|
|
4097
|
+
console.log('📊 Setting grade levels signal with data:', gradeLevelData);
|
|
4092
4098
|
this.gradeLevels.set(gradeLevelData);
|
|
4099
|
+
console.log('📊 Grade levels signal after set:', this.gradeLevels());
|
|
4100
|
+
console.log('📊 Grade level options after set:', this.gradeLevelOptions());
|
|
4093
4101
|
// Update grid data if designations are already loaded
|
|
4094
4102
|
if (this.designations().length > 0) {
|
|
4095
4103
|
this.updateGridData(this.designations());
|