refactor: combine member processing methods in BulkMembersDialog
Consolidate organizerAdmitAndAddWithVisibility() and
memberAddContactWithVisibility() into a single unified method
processSelectedMembers() that handles both organizer and member
modes based on the isOrganizer prop.
- Remove redundant handleMainAction() wrapper method
- Update template to call processSelectedMembers directly
- Reduce code duplication by ~30% (140 lines → 98 lines)
- Maintain identical functionality for both modes
This simplifies the component structure and makes the processing
logic easier to maintain.
text:`${admittedCount} member${admittedCount===1?"":"s"} admitted and registered${contactAddedCount===0?"":admittedCount===contactAddedCount?" and":`, ${contactAddedCount}`}${contactAddedCount===0?"":` added as contact${contactAddedCount===1?"":"s"}`}.`,
title:"Members Admitted Successfully",
},
text:`${admittedCount} member${admittedCount===1?"":"s"} admitted and registered${contactAddedCount===0?"":admittedCount===contactAddedCount?" and":`, ${contactAddedCount}`}${contactAddedCount===0?"":` added as contact${contactAddedCount===1?"":"s"}`}.`,
10000,
},
);
5000,
}
);
if(errors>0){
}
this.$notify(
if(errors>0){
{
this.$notify(
group:"alert",
{
type:"danger",
group:"alert",
title:"Error",
type:"danger",
text:"Failed to fully admit some members. Work with them individually below.",
title:"Error",
},
text:"Failed to fully admit some members. Work with them individually below.",