summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJan-Christoph Borchardt <hey@jancborchardt.net>2020-05-06 19:24:26 +0200
committerGitHub <noreply@github.com>2020-05-06 19:24:26 +0200
commit4ebf8ea0aff333ecbec24cc4cefd0f0167b39fc4 (patch)
treea05249355373ebc2ffbc40d6cac389ee9a1586df /src
parent1b27b6b4abff77b27ffdd57426662a8f300d1c38 (diff)
parent7db89c8ebb32cb589257db09600525b6cc328d95 (diff)
Merge pull request #1447 from nextcloud/design/remove-colorbar
Remove header color bar as it is not related to the contact
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}