summaryrefslogtreecommitdiffstats
path: root/templates/contactDetails.html
diff options
context:
space:
mode:
authorThomas Müller <thomas.mueller@tmit.eu>2016-03-07 18:11:35 +0100
committerThomas Müller <thomas.mueller@tmit.eu>2016-03-07 18:11:35 +0100
commitf28d7ac50cb0e35c0038565c0e12a13ae112b81a (patch)
tree80874f5d408a2d74389e8e6924630acbd4352e6d /templates/contactDetails.html
parentda6a8d512ed8ab730d46a766936d9497f4244f22 (diff)
Only show the photo element is a photo exists
Diffstat (limited to 'templates/contactDetails.html')
-rw-r--r--templates/contactDetails.html2
1 files changed, 1 insertions, 1 deletions
diff --git a/templates/contactDetails.html b/templates/contactDetails.html
index 986abb3a..357d0b4d 100644
--- a/templates/contactDetails.html
+++ b/templates/contactDetails.html
@@ -6,7 +6,7 @@
</div>
<div ng-if="ctrl.contact!==undefined">
<header class="contactdetails__header" ng-style="{'background-color': (ctrl.contact.uid() | contactColor)}">
- <img class="contactdetails__logo avatar" data-ng-src="data:image/png;base64,{{ctrl.photo}}" />
+ <img ng-if="ctrl.photo!==undefined" class="contactdetails__logo avatar" data-ng-src="data:image/png;base64,{{ctrl.photo}}" />
<h2>
<input type="text" id="details-fullName" class="contactdetails__name" placeholder="{{ctrl.t.placeholderName}}" name="email" ng-model="ctrl.contact.fullName" ng-model-options="{ getterSetter: true, debounce: 500 }" ng-change="ctrl.updateContact()" value="" />
</h2>