mirror of
https://github.com/vale981/Vulcan
synced 2025-03-06 10:01:40 -05:00
added link for deleting users
This commit is contained in:
parent
4d93184d67
commit
9bf59c6106
4 changed files with 8 additions and 0 deletions
|
@ -1,6 +1,7 @@
|
|||
## v0.5.4
|
||||
|
||||
* Added email notifications for approved users.
|
||||
* Added delete users link
|
||||
|
||||
## v0.5.3
|
||||
|
||||
|
|
|
@ -16,5 +16,6 @@
|
|||
<td>{{karma}}</td>
|
||||
<td>{{#if isInvited}}<a class="uninvite-link" href="#"><i class="icon-check"></i>Uninvite</a>{{else}}<a href="#" class="invite-link">Invite</a>{{/if}}</td>
|
||||
<td>{{#if userIsAdmin}}<a class="unadmin-link" href="#"><i class="icon-check unadmin-link"></i>Unadmin</a>{{else}}<a href="#" class="admin-link">Make admin</a>{{/if}}</td>
|
||||
<td><a class="delete-link" href="#">Delete User</a></td>
|
||||
</tr>
|
||||
</template>
|
|
@ -71,5 +71,10 @@ Template.user_item.events({
|
|||
isAdmin: false
|
||||
}
|
||||
});
|
||||
},
|
||||
'click .delete-link': function(e, instance){
|
||||
e.preventDefault();
|
||||
if(confirm("Are you sure you want to delete "+getDisplayName(instance.data)+"?"))
|
||||
Meteor.users.remove(instance.data._id);
|
||||
}
|
||||
})
|
|
@ -13,6 +13,7 @@
|
|||
<td>Karma</td>
|
||||
<td>Is Invited?</td>
|
||||
<td>Is Admin?</td>
|
||||
<td>Delete</td>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
|
|
Loading…
Add table
Reference in a new issue