Skip to content
Snippets Groups Projects
Commit 7a704526 authored by kushalpandya's avatar kushalpandya
Browse files

Prop name update, minor cleanup

parent 00226a94
No related branches found
No related tags found
No related merge requests found
<script>
export default {
name: 'group-identicon',
props: {
id: {
entityId: {
type: Number,
required: true,
},
name: {
entityName: {
type: String,
required: true,
},
Loading
Loading
@@ -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>
 
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment