Skip to content

Commit a65b584

Browse files
rename variables
1 parent d168ed2 commit a65b584

File tree

1 file changed

+10
-8
lines changed

1 file changed

+10
-8
lines changed

ui/src/views/project/AddAccountOrUserToProject.vue

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -40,12 +40,12 @@
4040
<template v-if="load.accounts" #notFoundContent>
4141
<a-spin size="small" />
4242
</template>
43-
<template v-if="!load.accounts" #option="item">
44-
<span v-if="item.icon">
45-
<resource-icon :image="item.icon.base64image" size="1x" style="margin-right: 5px"/>
43+
<template v-if="!load.accounts" #option="account">
44+
<span v-if="account.icon">
45+
<resource-icon :image="account.icon.base64image" size="1x" style="margin-right: 5px"/>
4646
</span>
4747
<block-outlined v-else style="margin-right: 5px" />
48-
{{ item.value }}
48+
{{ account.name }}
4949
</template>
5050
</a-auto-complete>
5151
</a-form-item>
@@ -126,12 +126,12 @@
126126
<template v-if="load.users" #notFoundContent>
127127
<a-spin size="small" />
128128
</template>
129-
<template v-if="!load.users" #option="item">
130-
<span v-if="item.icon">
131-
<resource-icon :image="item.icon.base64image" size="1x" style="margin-right: 5px"/>
129+
<template v-if="!load.users" #option="user">
130+
<span v-if="user.icon">
131+
<resource-icon :image="user.icon.base64image" size="1x" style="margin-right: 5px"/>
132132
</span>
133133
<block-outlined v-else style="margin-right: 5px" />
134-
{{ item.firstName + ' ' + item.lastName + " (" + item.value + ")" }}
134+
{{ user.firstName + ' ' + user.lastName + " (" + user.username + ")" }}
135135
</template>
136136
</a-auto-complete>
137137
</a-form-item>
@@ -273,6 +273,7 @@ export default {
273273
return users.map(user => {
274274
return {
275275
value: user.username,
276+
username: user.username,
276277
firstName: user.firstname,
277278
lastName: user.lastname,
278279
icon: user.icon
@@ -301,6 +302,7 @@ export default {
301302
return accounts.map(account => {
302303
return {
303304
value: account.name,
305+
name: account.name,
304306
icon: account.icon
305307
}
306308
})

0 commit comments

Comments
 (0)