Prop name update, minor cleanup
This commit is contained in:
parent
00226a9404
commit
7a70452632
|
@ -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>
|
||||
|
||||
|
|
Loading…
Reference in New Issue