Browse Source

Add ability to remove contact.

pull/73/head
Evan Theurer 11 years ago
parent
commit
99b306d66c
  1. 5
      static/js/controllers/contactsmanagercontroller.js
  2. 3
      static/partials/contactsmanager.html

5
static/js/controllers/contactsmanagercontroller.js

@ -35,6 +35,11 @@ define([], function() { @@ -35,6 +35,11 @@ define([], function() {
updateContacts();
});
$scope.removeContact = function(id) {
contacts.remove(id);
updateContacts();
};
}];
});

3
static/partials/contactsmanager.html

@ -17,6 +17,9 @@ @@ -17,6 +17,9 @@
<td class="name">
<span>{{contact.Status.displayName}}</span>
</td>
<td class="action">
<button class="btn btn-danger" ng-click="removeContact(contact.Userid)">{{_('Remove')}}</button>
</td>
</tr>
</tbody>
</table>

Loading…
Cancel
Save