You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: frontend/src/modules/member/components/list/member-list-toolbar.vue
+20-11Lines changed: 20 additions & 11 deletions
Original file line number
Diff line number
Diff line change
@@ -22,13 +22,15 @@
22
22
v-if="areSelectedMembersNotEnriched"
23
23
placement="top"
24
24
content="Selected members lack an associated GitHub profile or Email"
25
-
:disabled="elegibleEnrichmentMembers.length"
25
+
:disabled="elegibleEnrichmentMembersIds.length"
26
26
popper-class="max-w-[260px]"
27
27
>
28
28
<span>
29
29
<el-dropdown-item
30
30
command="enrichMember"
31
-
:disabled="!elegibleEnrichmentMembers.length"
31
+
:disabled="
32
+
!elegibleEnrichmentMembersIds.length
33
+
"
32
34
class="mb-1"
33
35
>
34
36
<app-svg
@@ -113,11 +115,14 @@ export default {
113
115
).edit===false
114
116
)
115
117
},
116
-
elegibleEnrichmentMembers() {
117
-
returnthis.selectedRows.filter(
118
-
(r) =>
119
-
(r.username?.github||r.email) &&!r.lastEnriched
120
-
)
118
+
elegibleEnrichmentMembersIds() {
119
+
returnthis.selectedRows
120
+
.filter(
121
+
(r) =>
122
+
(r.username?.github||r.email) &&
123
+
!r.lastEnriched
124
+
)
125
+
.map((item) =>item.id)
121
126
},
122
127
selectedIds() {
123
128
returnthis.selectedRows
@@ -151,10 +156,12 @@ export default {
151
156
} elseif (command ==='enrichMember') {
152
157
// All members are elegible for enrichment
153
158
if (
154
-
this.elegibleEnrichmentMembers.length===
159
+
this.elegibleEnrichmentMembersIds.length===
155
160
this.selectedIds.length
156
161
) {
157
-
awaitthis.doBulkEnrich(this.selectedIds)
162
+
awaitthis.doBulkEnrich(
163
+
this.elegibleEnrichmentMembersIds
164
+
)
158
165
} else {
159
166
// Only a few members are elegible for enrichment
160
167
try {
@@ -166,14 +173,16 @@ export default {
166
173
'Member enrichment requires an associated GitHub profile or Email. If you proceed, only the members who fulfill this requirement will be enriched and counted towards your quota.',
167
174
confirmButtonText:`Proceed with enrichment (${pluralize(
0 commit comments