Skip to content

Commit a94fb61

Browse files
authored
Merge pull request #2674 from tekdi/release-1.15.0
Release 1.15.0 to learner dev
2 parents 6e0adbe + 625e7a3 commit a94fb61

File tree

12 files changed

+27
-19
lines changed

12 files changed

+27
-19
lines changed

apps/admin-app-repo/src/pages/centers.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -229,7 +229,7 @@ const Centers = () => {
229229
([_, value]) => !Array.isArray(value) || value.length > 0
230230
)
231231
);
232-
const staticFilter = { type: CohortTypes.COHORT, tenantId: tenantId };
232+
const staticFilter = { type: CohortTypes.COHORT };
233233
const { sortBy } = formData;
234234
const staticSort = ['name', sortBy || 'asc'];
235235
await searchListData(

apps/admin-app-repo/src/pages/user-content-creator.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -817,7 +817,7 @@ const ContentCreator = () => {
817817
)}
818818
</DialogContent>
819819
<DialogActions sx={{ p: 2, borderTop: '1px solid #eee' }}>
820-
{formStep === 0 && (
820+
{formStep === 0 && !(!selectedUserId || isMappingInProgress) && (
821821
<Button
822822
sx={{
823823
backgroundColor: '#FFC107',

apps/admin-app-repo/src/pages/user-content-reviewer.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -826,7 +826,7 @@ const ContentReviewer = () => {
826826
)}
827827
</DialogContent>
828828
<DialogActions sx={{ p: 2, borderTop: '1px solid #eee' }}>
829-
{formStep === 0 && (
829+
{formStep === 0 && !(!selectedUserId || isMappingInProgress) && (
830830
<Button
831831
sx={{
832832
backgroundColor: '#FFC107',

apps/admin-app-repo/src/pages/user-instructor.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1274,7 +1274,7 @@ const Facilitator = () => {
12741274
)}
12751275
</DialogContent>
12761276
<DialogActions sx={{ p: 2, borderTop: '1px solid #eee' }}>
1277-
{formStep === 0 && (
1277+
{formStep === 0 && !(!selectedUserId || isMappingInProgress) && (
12781278
<Button
12791279
sx={{
12801280
backgroundColor: '#FFC107',
@@ -1299,7 +1299,7 @@ const Facilitator = () => {
12991299
{t('COMMON.NEXT')}
13001300
</Button>
13011301
)}
1302-
{formStep === 1 && (
1302+
{formStep === 1 && !(!selectedUserId || !selectedCenterId || isMappingInProgress) && (
13031303
<Button
13041304
variant="contained"
13051305
color="primary"

apps/admin-app-repo/src/pages/user-leader.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -990,7 +990,7 @@ const UserLeader = () => {
990990
)}
991991
</DialogContent>
992992
<DialogActions sx={{ p: 2, borderTop: '1px solid #eee' }}>
993-
{formStep === 0 && (
993+
{formStep === 0 && !(!selectedUserId || isMappingInProgress) && (
994994
<Button
995995
sx={{
996996
backgroundColor: '#FFC107',
@@ -1015,7 +1015,7 @@ const UserLeader = () => {
10151015
{t('COMMON.NEXT')}
10161016
</Button>
10171017
)}
1018-
{formStep === 1 && (
1018+
{formStep === 1 && !(!selectedUserId || !selectedCenterId || isMappingInProgress) && (
10191019
<Button
10201020
variant="contained"
10211021
color="primary"

apps/admin-app-repo/src/pages/user-mobilizer.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1554,7 +1554,7 @@ const Mobilizer = () => {
15541554
)}
15551555
</DialogContent>
15561556
<DialogActions sx={{ p: 2, borderTop: '1px solid #eee' }}>
1557-
{formStep === 0 && (
1557+
{formStep === 0 && !(!selectedUserId || isMappingInProgress) && (
15581558
<Button
15591559
sx={{
15601560
backgroundColor: '#FFC107',
@@ -1579,7 +1579,7 @@ const Mobilizer = () => {
15791579
{t('COMMON.NEXT')}
15801580
</Button>
15811581
)}
1582-
{formStep === 1 && (
1582+
{formStep === 1 && !(!selectedUserId || !userDetails || !workingVillageAssignmentCenterId || selectedVillagesSet.size === 0 || isMappingInProgress) && (
15831583
<Button
15841584
variant="contained"
15851585
color="primary"

apps/admin-app-repo/src/pages/user-state-lead.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -733,7 +733,7 @@ const StateLead = () => {
733733
)}
734734
</DialogContent>
735735
<DialogActions sx={{ p: 2, borderTop: '1px solid #eee' }}>
736-
{formStep === 0 && (
736+
{formStep === 0 && !(!selectedUserId || isMappingInProgress) && (
737737
<Button
738738
sx={{
739739
backgroundColor: '#FFC107',

libs/shared-lib-v2/src/MapUser/MultipleBatchListWidget.tsx

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -590,11 +590,15 @@ const MultipleBatchListWidget: React.FC<MultipleBatchListWidgetProps> = ({
590590
filters.village = selectedVillage;
591591
}
592592

593+
//for search name
594+
if(searchKeyword){
595+
filters.name = searchKeyword;
596+
}
597+
593598
const payload = {
594599
limit: 200,
595600
offset: 0,
596601
filters,
597-
...(searchKeyword && { name: searchKeyword }),
598602
};
599603

600604
const response = await axios.post(

libs/shared-lib-v2/src/MapUser/MultipleCenterListWidgetNew.tsx

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -529,11 +529,15 @@ const MultipleCenterListWidget: React.FC<MultipleCenterListWidgetProps> = ({
529529
filters.village = selectedVillage;
530530
}
531531

532+
//for search name
533+
if(searchKeyword){
534+
filters.name = searchKeyword;
535+
}
536+
532537
const payload = {
533538
limit: 200,
534539
offset: 0,
535540
filters,
536-
...(searchKeyword && { name: searchKeyword }),
537541
};
538542

539543
const response = await axios.post(

libs/shared-lib-v2/src/lib/context/locales/en.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
"SELF_PLACED": "Self Placed",
3434
"Male": "Male",
3535
"Female": "Female",
36-
"Transgender": "Transgender",
36+
"Transgender": "Other",
3737
"email": "Email",
3838
"DESIGNATION": "Designation",
3939
"Facilitator": "Facilitator",
@@ -581,7 +581,7 @@
581581
"WORKING_STATE": "Working State",
582582
"MALE": "Male",
583583
"FEMALE": "Female",
584-
"TRANSGENDER": "Transgender",
584+
"TRANSGENDER": "Other",
585585
"MOTHER_NAME": "Mother Name",
586586
"NUMBER_OF_CHILDREN": "Number of Children",
587587
"NUMBER_OF_CHILDREN_IN_YOUR_GROUP": "Number of Children in your group",
@@ -733,7 +733,7 @@
733733
"EDUCATIONAL_INSTITUTE": "Educational Institute",
734734
"UNEMPLOYED_OR_DOMESTIC_WORK": "Unemployed or Domestic Work",
735735
"SELF_PLACED": "Self Placed",
736-
"TRANSGENDER": "Transgender",
736+
"TRANSGENDER": "Other",
737737
"HINDI": "Hindi",
738738
"MARATHI": "Marathi",
739739
"URDU": "Urdu",

0 commit comments

Comments
 (0)