File tree Expand file tree Collapse file tree 1 file changed +18
-9
lines changed Expand file tree Collapse file tree 1 file changed +18
-9
lines changed Original file line number Diff line number Diff line change 71
71
<div class =" multiselect__tag multiselect__tag-custom" >
72
72
<ListItemIcon :no-margin =" true"
73
73
:name =" option.label"
74
- :subtitle = " option.email "
74
+ :subname = " showEmailAsSubname( option) "
75
75
:icon-class =" !option.id ? 'icon-user' : null"
76
- :url =" option.photo"
77
- :avatar-size =" 24" />
76
+ :url =" option.photo" />
78
77
</div >
79
78
</template >
80
79
</NcSelect >
128
127
<div class =" multiselect__tag multiselect__tag-custom" >
129
128
<ListItemIcon :no-margin =" true"
130
129
:name =" option.label"
131
- :subtitle = " option.email "
130
+ :subname = " showEmailAsSubname( option) "
132
131
:url =" option.photo"
133
- :icon-class =" !option.id ? 'icon-user' : null"
134
- :avatar-size =" 24" />
132
+ :icon-class =" !option.id ? 'icon-user' : null" />
135
133
</div >
136
134
</template >
137
135
</NcSelect >
179
177
<div class =" multiselect__tag multiselect__tag-custom" >
180
178
<ListItemIcon :no-margin =" true"
181
179
:name =" option.label"
182
- :subtitle = " option.email "
180
+ :subname = " showEmailAsSubname( option) "
183
181
:url =" option.photo"
184
- :icon-class =" !option.id ? 'icon-user' : null"
185
- :avatar-size =" 24" />
182
+ :icon-class =" !option.id ? 'icon-user' : null" />
186
183
</div >
187
184
</template >
188
185
</NcSelect >
@@ -1377,6 +1374,18 @@ export default {
1377
1374
createRecipientOption (value ) {
1378
1375
return { email: value, label: value }
1379
1376
},
1377
+
1378
+ /**
1379
+ * Use the email address as subname if we have label
1380
+ *
1381
+ * @param {{email: string, label: string}} option
1382
+ * @return string
1383
+ */
1384
+ showEmailAsSubname (option ) {
1385
+ return (option .label === option .email )
1386
+ ? ' '
1387
+ : option .email
1388
+ },
1380
1389
},
1381
1390
}
1382
1391
< / script>
You can’t perform that action at this time.
0 commit comments