summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJan-Christoph Borchardt <hey@jancborchardt.net>2020-01-21 12:30:41 +0800
committerJan-Christoph Borchardt <hey@jancborchardt.net>2020-04-22 22:39:01 +0200
commit7db89c8ebb32cb589257db09600525b6cc328d95 (patch)
tree80d5805591e5e938721e814e6c61565091a63c60 /src
parent10b916034cccb9705a2c5a4e05067eb2a2a68efc (diff)
Remove header color bar as it is not related to the contact
Signed-off-by: Jan-Christoph Borchardt <hey@jancborchardt.net>
Diffstat (limited to 'src')
-rw-r--r--src/components/ContactDetails.vue16
1 files changed, 1 insertions, 15 deletions
diff --git a/src/components/ContactDetails.vue b/src/components/ContactDetails.vue
index f27d0113..9553bb1c 100644
--- a/src/components/ContactDetails.vue
+++ b/src/components/ContactDetails.vue
@@ -37,7 +37,7 @@
<template v-else>
<!-- contact header -->
- <header :style="{ 'backgroundColor': colorAvatar }">
+ <header>
<!-- avatar and upload photo -->
<ContactAvatar :contact="contact" />
<!-- QUESTION: is it better to pass contact as a prop or get it from the store inside
@@ -337,20 +337,6 @@ export default {
},
/**
- * Contact color based on uid
- *
- * @returns {string}
- */
- colorAvatar() {
- try {
- const color = this.contact.uid.toRgb()
- return `rgb(${color.r}, ${color.g}, ${color.b})`
- } catch (e) {
- return 'grey'
- }
- },
-
- /**
* Contact properties copied and sorted by rfcProps.fieldOrder
*
* @returns {Array}