Commit 7a704526 authored by kushalpandya's avatar kushalpandya

Prop name update, minor cleanup

parent 00226a94
<script> <script>
export default { export default {
name: 'group-identicon',
props: { props: {
id: { entityId: {
type: Number,
required: true, required: true,
}, },
name: { entityName: {
type: String, type: String,
required: true, required: true,
}, },
...@@ -24,14 +26,14 @@ export default { ...@@ -24,14 +26,14 @@ export default {
'#EEEEEE', '#EEEEEE',
]; ];
const backgroundColor = allowedColors[this.id % 7]; const backgroundColor = allowedColors[this.entityId % 7];
return `background-color: ${backgroundColor}; color: #555;`; return `background-color: ${backgroundColor}; color: #555;`;
}, },
identiconTitle() { identiconTitle() {
return this.name.charAt(0).toUpperCase(); return this.entityName.charAt(0).toUpperCase();
} },
} },
}; };
</script> </script>
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment