diff options
author | John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com> | 2017-01-05 12:32:39 +0100 |
---|---|---|
committer | John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com> | 2017-01-23 05:48:03 +0100 |
commit | a45c812d5cf130f7e53e52ad48e7638cb8edb097 (patch) | |
tree | 4d4a59691f4d1160cac62ed2b9bea716cbae18d9 /templates | |
parent | da70db414812b4a4e48de3a664da88cfa3a0a2ef (diff) |
Added vcard error visual
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
Diffstat (limited to 'templates')
-rw-r--r-- | templates/contact.html | 1 | ||||
-rw-r--r-- | templates/contactDetails.html | 5 |
2 files changed, 5 insertions, 1 deletions
diff --git a/templates/contact.html b/templates/contact.html index 48bb74ed..b6e68c00 100644 --- a/templates/contact.html +++ b/templates/contact.html @@ -2,6 +2,7 @@ <img class="app-content-list-item-icon contact__icon" ng-show="ctrl.contact.photo()!==undefined" data-ng-src="{{ctrl.contact.photo()}}" /> <div class="app-content-list-item-icon contact__icon" ng-show="ctrl.contact.photo()===undefined" ng-style="{'background-color': (ctrl.contact.uid() | contactColor) }">{{ ctrl.contact.displayName() | firstCharacter }}</div> <div class="app-content-list-item-star icon-star" data-starred="false"></div> + <div class="app-content-list-item-failed icon-error" tooltip-placement="auto left" ng-if="ctrl.contact.failedProps.length>0" uib-tooltip="{{ ctrl.t.errorMessage }}"></div> <div class="app-content-list-item-line-one" ng-class="{'no-line-two':!ctrl.contact.email()}">{{ ctrl.contact.displayName() | newContact }}</div> <div class="app-content-list-item-line-two">{{ctrl.contact.email()}}</div> </a> diff --git a/templates/contactDetails.html b/templates/contactDetails.html index db75f686..07eea2de 100644 --- a/templates/contactDetails.html +++ b/templates/contactDetails.html @@ -24,6 +24,7 @@ </div> </div> <div id="details-actions"> + <button id="contact-failed-save" ng-click="ctrl.updateContact()" class="icon-checkmark-white" ng-if="ctrl.contact.failedProps.length>0" title="{{ctrl.t.save}}"></button> <a href="{{ctrl.contact.data.url}}" id="contact-export-link" class="icon-download-white" title="{{ctrl.t.download}}" download="{{ ctrl.contact.readableFilename() }}"></a> @@ -32,7 +33,8 @@ </header> <section> <div ng-repeat="prop in ctrl.contact.props | toArray | orderDetailItems:'$key'"> - <detailsItem ng-repeat="propData in prop" name="prop.$key" data="propData" model="ctrl" index="$index" ng-class="[ 'details-item-' + prop.$key ]"></detailsItem> + <detailsItem ng-repeat="propData in prop" name="prop.$key" data="propData" model="ctrl" index="$index" + class="details-item-{{prop.$key}}" ng-class="{ 'failed': ctrl.contact.failedProps.indexOf(prop.$key) !== -1 }"></detailsItem> </div> <div class="select-addressbook" ng-if="ctrl.addressBooks.length > 1"> <select ng-model="ctrl.addressBook" ng-change="ctrl.changeAddressBook(ctrl.addressBook)" ng-options="book.displayName for book in ctrl.addressBooks"> @@ -45,3 +47,4 @@ </section> </div> </div> + |