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:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user