Skip to content

Commit

Permalink
Fix: Added resolution description to resolved duplicate table
Browse files Browse the repository at this point in the history
  • Loading branch information
SodhiA1 committed May 31, 2024
1 parent 05f530f commit 78a06bc
Showing 1 changed file with 10 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,11 @@
:reset="false"
:total-elements="2"
:hide-pagination="true"
/>
>
<template #resolution="{ sdcSchoolCollectionStudent }">
<span>{{getDuplicateResolutionDescription(duplicate.duplicateResolutionCode)}}</span>
</template>
</CustomTable>
</v-col>
</v-row>
<v-row
Expand Down Expand Up @@ -286,6 +290,7 @@ import {IN_DISTRICT_DUPLICATES} from '../../../../utils/sdc/DistrictCollectionTa
import ProgramDuplicateResolution from './ProgramDuplicateResolution.vue';
import EnrollmentDuplicateResolveViaRemove from './EnrollmentDuplicateResolveViaRemove.vue';
import ChangeGrade from './ChangeGrade.vue';
import {sdcCollectionStore} from '../../../../store/modules/sdcCollection';
export default defineComponent({
name: 'DuplicateTab',
Expand Down Expand Up @@ -329,8 +334,7 @@ export default defineComponent({
computed: {
IN_DISTRICT_DUPLICATES() {
return IN_DISTRICT_DUPLICATES;
},
}
},
methods: {
resolveProgramDuplicate(duplicate) {
Expand All @@ -352,6 +356,9 @@ export default defineComponent({
this.selectedStudentForGradeChange = sdcSchoolCollectionStudent;
this.selectedEnrollmentDuplicate = duplicate;
this.openChangeGradeView = !this.openChangeGradeView;
},
getDuplicateResolutionDescription(key) {
return sdcCollectionStore().duplicateResolutionCodesMap.get(key)?.message;
}
}
});
Expand Down

0 comments on commit 78a06bc

Please sign in to comment.