Browse Source

feat: hide contact instruction when no non-contact members exist

- Add condition to only show "add to contacts" instruction when there are members who are not already contacts
- Use existing getNonContactMembers() method to check for non-contact members
- Fix line length warning by breaking long comment into multiple lines
pull/210/head
Jose Olarte III 6 days ago
parent
commit
562713d5a4
  1. 11
      src/components/MembersList.vue

11
src/components/MembersList.vue

@ -36,7 +36,11 @@
<font-awesome icon="circle-minus" class="text-rose-500 text-sm" /> <font-awesome icon="circle-minus" class="text-rose-500 text-sm" />
to add/remove them to/from the meeting. to add/remove them to/from the meeting.
</li> </li>
<li v-if="membersToShow().length > 0"> <li
v-if="
membersToShow().length > 0 && getNonContactMembers().length > 0
"
>
Click Click
<font-awesome icon="circle-user" class="text-green-600 text-sm" /> <font-awesome icon="circle-user" class="text-green-600 text-sm" />
to add them to your contacts. to add them to your contacts.
@ -189,7 +193,10 @@
:api-server="apiServer" :api-server="apiServer"
@close="closeMemberSelectionDialogCallback" @close="closeMemberSelectionDialogCallback"
/> />
<!-- This Bulk Visibility component is for non-organizer members to add other members to their contacts and set their visibility --> <!--
This Bulk Visibility component is for non-organizer members
to add other members to their contacts and set their visibility
-->
<SetBulkVisibilityDialog <SetBulkVisibilityDialog
ref="setBulkVisibilityDialog" ref="setBulkVisibilityDialog"
:active-did="activeDid" :active-did="activeDid"

Loading…
Cancel
Save