|
|
|
@ -115,6 +115,9 @@
|
|
|
|
|
|
|
|
|
|
// Groups helpers
|
|
|
|
|
helpers.membershipBtn = function(groupObj) {
|
|
|
|
|
if (groupObj.name==='administrators') {
|
|
|
|
|
return '';
|
|
|
|
|
} else {
|
|
|
|
|
if (groupObj.isMember) {
|
|
|
|
|
return '<button class="btn btn-danger" data-action="leave" data-group="' + groupObj.displayName + '"><i class="fa fa-times"></i> Leave Group</button>';
|
|
|
|
|
} else {
|
|
|
|
@ -126,6 +129,7 @@
|
|
|
|
|
return '<button class="btn btn-success" data-action="join" data-group="' + groupObj.displayName + '"><i class="fa fa-plus"></i> Join Group</button>';
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
helpers.spawnPrivilegeStates = function(member, privileges) {
|
|
|
|
|