diff options
author | kushalpandya <kushal@gitlab.com> | 2017-08-01 14:38:54 +0530 |
---|---|---|
committer | kushalpandya <kushal@gitlab.com> | 2017-08-01 14:38:54 +0530 |
commit | 7a704526329d9615f9ab6a26f3a8113f374f311e (patch) | |
tree | 32cabcc59c08461bea54da874a423fe4f31b7abe /app/assets | |
parent | 00226a9404d8e453a06d09ec54628a4eb66d98ec (diff) | |
download | gitlab-ce-7a704526329d9615f9ab6a26f3a8113f374f311e.tar.gz |
Prop name update, minor cleanup
Diffstat (limited to 'app/assets')
-rw-r--r-- | app/assets/javascripts/groups/components/group_identicon.vue | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/app/assets/javascripts/groups/components/group_identicon.vue b/app/assets/javascripts/groups/components/group_identicon.vue index 4e0898b6c44..ba921a177e9 100644 --- a/app/assets/javascripts/groups/components/group_identicon.vue +++ b/app/assets/javascripts/groups/components/group_identicon.vue @@ -1,10 +1,12 @@ <script> export default { + name: 'group-identicon', props: { - id: { + entityId: { + type: Number, required: true, }, - name: { + entityName: { type: String, required: true, }, @@ -24,14 +26,14 @@ export default { '#EEEEEE', ]; - const backgroundColor = allowedColors[this.id % 7]; + const backgroundColor = allowedColors[this.entityId % 7]; return `background-color: ${backgroundColor}; color: #555;`; }, identiconTitle() { - return this.name.charAt(0).toUpperCase(); - } - } + return this.entityName.charAt(0).toUpperCase(); + }, + }, }; </script> |