(js) Fix button to remove an attendee

pull/234/head
Francis Lachapelle 2017-03-10 14:49:32 -05:00
parent f60ffa923e
commit d24ff75ecf
1 changed files with 5 additions and 5 deletions

View File

@ -17,6 +17,11 @@
<div class="md-tile-left"><!-- empty --></div>
</md-list-item>
<md-list-item ng-repeat="currentAttendee in editor.component.attendees track by currentAttendee.email">
<md-button class="md-icon-button"
label:aria-label="Delete"
ng-click="editor.removeAttendee(currentAttendee, eventForm)">
<md-icon>remove_circle</md-icon>
</md-button>
<sg-avatar-image class="md-avatar"
sg-email="currentAttendee.email"
size="40">person</sg-avatar-image>
@ -24,11 +29,6 @@
<div class="sg-md-subhead"><div>{{currentAttendee.name}}</div></div>
<div class="sg-md-body"><div>{{currentAttendee.email}}</div></div>
</div>
<md-button class="md-icon-button"
label:aria-label="Delete"
ng-click="editor.removeAttendee(currentAttendee)">
<md-icon>close</md-icon>
</md-button>
<md-divider><!-- divider --></md-divider>
</md-list-item>
</md-list>