(fix) Save card in Contacts module

This commit is contained in:
Francis Lachapelle
2015-06-12 11:47:50 -04:00
parent 0f1b0bfbbe
commit d77f75da49
3 changed files with 16 additions and 19 deletions
@@ -297,12 +297,10 @@
</div>
-->
<md-list vs-repeat="72" vs-scroll-parent="#contactsList">
<md-list-item ng-repeat="currentCard in addressbook.cards track by currentCard.id">
<div
ng-class="{_selected: card.id == currentCard.id}"
ng-click="select($index); toggleDetailView()"
layout="row"
flex="true">
<md-list-item ng-repeat="currentCard in currentFolder.cards track by currentCard.id">
<div layout="row" flex="true"
ng-class="{_selected: card.id == currentCard.id}"
ng-click="select($index); toggleDetailView()">
<div class="sg-avatar" ng-show="currentCard.tag == 'vcard'">
<!--card avatar-->
</div>
@@ -310,7 +308,7 @@
<!--list avatar-->
</div>
<div class="sg-tile-content">
<a ui-sref="app.addressbook.card.view({addressbookId: addressbook.id, cardId: currentCard.id})">
<a ui-sref="app.addressbook.card.view({addressbookId: currentFolder.id, cardId: currentCard.id})">
<div class="sg-md-body-multi contact-name" ng-bind-html="currentCard.$fullname()"><!-- cn --></div>
<div class="sg-md-subhead-multi contact-email">{{currentCard.$preferredEmail()}}</div>
</a>
@@ -22,7 +22,7 @@
</h6>
</div>
<div class="sg-icon-bar--vertical">
<md-button class="iconButton" aria-label="Edit" ng-show="addressbook.isEditable" ui-sref="app.addressbook.card.editor({addressbookId: addressbook.id, cardId: card.id})">
<md-button class="iconButton" aria-label="Edit" ng-show="currentFolder.isEditable" ui-sref="app.addressbook.card.editor({addressbookId: currentFolder.id, cardId: card.id})">
<i class="md-icon-create"><!-- edit --></i>
</md-button>
<md-button class="iconButton" aria-label="Delete" ng-click="confirmDelete(card)">
@@ -56,7 +56,7 @@
</div>
<div class="md-list-item-text">
<h3><a ui-sref="addressbook.card.view({addressbookId:
addressbook.id, cardId:
currentFolder.id, cardId:
ref.reference})">
{{ ref.$fullname() }}
</a>