summaryrefslogtreecommitdiffstats
path: root/templates
diff options
context:
space:
mode:
authorHendrik Leppelsack <hendrik@leppelsack.de>2017-10-31 20:16:59 +0100
committerHendrik Leppelsack <hendrik@leppelsack.de>2017-10-31 20:16:59 +0100
commit379be9395adbb0870f594675824e0dcaeefcf216 (patch)
tree5180de9749d061c2bb9fa86f948dc4bf87f336b7 /templates
parent179e97ebdeca7482537666dd795439c4c0c2bcec (diff)
fix references
Diffstat (limited to 'templates')
-rw-r--r--templates/contactDetails.html2
-rw-r--r--templates/propertyGroup.html2
2 files changed, 2 insertions, 2 deletions
diff --git a/templates/contactDetails.html b/templates/contactDetails.html
index d3fb8bc1..58a2f2d2 100644
--- a/templates/contactDetails.html
+++ b/templates/contactDetails.html
@@ -42,7 +42,7 @@
</div>
</header>
<section>
- <propertyGroup ng-repeat="prop in ctrl.contact.props | toArray | orderDetailItems:'$key'" contact="ctrl" prop="prop" name="prop.$key"></propertyGroup>
+ <propertyGroup ng-repeat="prop in ctrl.contact.props | toArray | orderDetailItems:'$key'" model="ctrl.contact" data="prop" name="prop.$key"></propertyGroup>
<div class="select-addressbook" ng-if="ctrl.addressBooks.length > 1 && !ctrl.addressBook.readOnly">
<label for="details-addressbook">{{ctrl.t.addressBook}}</label>
diff --git a/templates/propertyGroup.html b/templates/propertyGroup.html
index 1d7ad3ef..99b4a818 100644
--- a/templates/propertyGroup.html
+++ b/templates/propertyGroup.html
@@ -1,3 +1,3 @@
<h3 class="propertyGroup__title" ng-class="ctrl.getIconClass()" style="display: inline-block; background-size: 16px 16px; background-position-x: 0; padding-left: 20px;">{{ctrl.getReadableName()}}</h3>
-<detailsItem ng-repeat="property in ctrl.properties" name="ctrl.name" data="property" model="ctrl" index="$index"
+<detailsItem ng-repeat="property in ctrl.properties" name="ctrl.name" data="property" model="ctrl.contact" index="$index"
class="details-item-{{ctrl.name}}" ng-class="{ 'failed': ctrl.contact.failedProps.indexOf(ctrl.name) !== -1 }"></detailsItem>