diff options
author | Thomas Müller <thomas.mueller@tmit.eu> | 2016-03-07 18:11:35 +0100 |
---|---|---|
committer | Thomas Müller <thomas.mueller@tmit.eu> | 2016-03-07 18:11:35 +0100 |
commit | f28d7ac50cb0e35c0038565c0e12a13ae112b81a (patch) | |
tree | 80874f5d408a2d74389e8e6924630acbd4352e6d /templates/contactDetails.html | |
parent | da6a8d512ed8ab730d46a766936d9497f4244f22 (diff) |
Only show the photo element is a photo exists
Diffstat (limited to 'templates/contactDetails.html')
-rw-r--r-- | templates/contactDetails.html | 2 |
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> |