Skip to content

Commit

Permalink
fix(NewCollectiveModal): Mention that own user is part of collective
Browse files Browse the repository at this point in the history
People got confused by searching their own user.

Signed-off-by: Jonas <[email protected]>
  • Loading branch information
mejo- committed Nov 9, 2023
1 parent 05b7704 commit 406f438
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/components/Member/MemberPicker.vue
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
<!-- No search results -->
<template v-else-if="currentUserIsAdmin && !showCurrentSkeleton">
<NcAppNavigationCaption class="member-picker-caption" :title="t('collectives', 'Add users, groups or circles…')" />
<Hint v-if="!isSearching" :hint="t('collectives', 'Search for members to add')" />
<Hint v-if="!isSearching" :hint="emptyContentHint" />
<Hint v-else-if="isSearchLoading" :hint="t('collectives', 'Loading…')" />
<Hint v-else :hint="t('collectives', 'No search results')" />
</template>
Expand Down Expand Up @@ -107,6 +107,10 @@ export default {
return () => {}
},
},
emptyContentHint: {
type: String,
default: t('collectives', 'Search for members to add.'),
},
},
data() {
Expand Down
1 change: 1 addition & 0 deletions src/components/Nav/NewCollectiveModal.vue
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,7 @@
<MemberPicker :show-selection="true"
:selected-members="selectedMembers"
:on-click-searched="onClickSearched"
:empty-content-hint="t('collectives', 'Your user is added automatically.')"
@delete-from-selection="deleteMember" />
</div>

Expand Down

0 comments on commit 406f438

Please sign in to comment.