diff options
author | John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com> | 2017-07-26 12:24:45 +0200 |
---|---|---|
committer | John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com> | 2017-07-26 12:25:10 +0200 |
commit | 2bd8742ce6f1d4d3f82334e70fc0c4f04b47d1dc (patch) | |
tree | fc533d9ddd20e45349bd2ae8bfa35a42dc0b92cb /templates | |
parent | 09b3a322a8870c34d6a0a6bd8cc4f11856383991 (diff) |
Fixed tooltip
Signed-off-by: John Molakvoæ (skjnldsv) skjnldsv@protonmail.com
Diffstat (limited to 'templates')
-rw-r--r-- | templates/avatar.html | 2 | ||||
-rw-r--r-- | templates/contactDetails.html | 3 |
2 files changed, 3 insertions, 2 deletions
diff --git a/templates/avatar.html b/templates/avatar.html index 5f7b1493..b49601a1 100644 --- a/templates/avatar.html +++ b/templates/avatar.html @@ -1,4 +1,4 @@ -<div ng-if="ctrl.contact.failedProps.indexOf('photo') !== -1" class="icon-error" uib-tooltip="{{ ctrl.t.errorMessage }}"></div> +<div ng-if="ctrl.contact.failedProps.indexOf('photo') !== -1" class="icon-error"></div> <img ng-show="contact.photo()!==undefined" class="contactdetails__logo avatar" id="contact-avatar" data-ng-src="{{contact.photo()}}" ng-click="ctrl.openPhoto()" /> <div class="avatar-options"> <input type="file" id="avatar-upload" class="hidden"/> diff --git a/templates/contactDetails.html b/templates/contactDetails.html index f942d54e..e8d9daec 100644 --- a/templates/contactDetails.html +++ b/templates/contactDetails.html @@ -8,7 +8,8 @@ </div> <div ng-if="ctrl.contact!==undefined"> <header class="contactdetails__header" ng-style="{'background-color': (ctrl.contact.uid() | contactColor)}"> - <avatar data="ctrl.contact" ng-class="{'avatar--missing': ctrl.contact.photo()===undefined}"></avatar> + <avatar data="ctrl.contact" ng-class="{'avatar--missing': ctrl.contact.photo()===undefined}" + tooltip-enable="ctrl.contact.failedProps.indexOf('photo') !== -1" tooltip-placement="auto right" uib-tooltip="{{ ctrl.t.errorAvatarMessage }}"></avatar> <div id="details-contact-infos"> <h2> <input type="text" id="details-fullName" class="contactdetails__name" placeholder="{{ctrl.t.placeholderName}}" autocomplete="off" autocorrect="off" spellcheck="false" |