|
|
@ -904,7 +904,6 @@ define([
|
|
|
|
var leave = h('button.cp-online.btn.btn-danger', Messages.team_leaveButton);
|
|
|
|
var leave = h('button.cp-online.btn.btn-danger', Messages.team_leaveButton);
|
|
|
|
$(leave).click(function () {
|
|
|
|
$(leave).click(function () {
|
|
|
|
if (me && me.role === 'OWNER') {
|
|
|
|
if (me && me.role === 'OWNER') {
|
|
|
|
Messages.team_leaveOwner = "Owners can't leave the team. You can demote yourself if there is at least one other owner."; // XXX
|
|
|
|
|
|
|
|
return void UI.alert(Messages.team_leaveOwner);
|
|
|
|
return void UI.alert(Messages.team_leaveOwner);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
UI.confirm(Messages.team_leaveConfirm, function (yes) {
|
|
|
|
UI.confirm(Messages.team_leaveConfirm, function (yes) {
|
|
|
|