refactor: move display text logic to BulkMembersDialog component

- Replace individual text props with single isOrganizer boolean prop
- Add computed properties for title, description, buttonText, and emptyStateText
- Simplify parent component interface by removing text prop passing
- Update quote style from single to double quotes for consistency
- Improve component encapsulation and maintainability
This commit is contained in:
Jose Olarte III
2025-10-30 16:11:45 +08:00
parent b37051f25d
commit 9628d5c8c6
2 changed files with 24 additions and 16 deletions

View File

@@ -203,18 +203,7 @@
:active-did="activeDid"
:api-server="apiServer"
:dialog-type="isOrganizer ? 'admit' : 'visibility'"
:title="isOrganizer ? 'Admit Pending Members' : 'Add Members to Contacts'"
:description="
isOrganizer
? 'Would you like to admit these members to the meeting and add them to your contacts?'
: 'Would you like to add these members to your contacts?'
"
:button-text="isOrganizer ? 'Admit + Add to Contacts' : 'Add to Contacts'"
:empty-state-text="
isOrganizer
? 'No pending members to admit'
: 'No members are not in your contacts'
"
:is-organizer="isOrganizer"
@close="closeBulkMembersDialogCallback"
/>
</div>