|
|
|
@ -199,10 +199,10 @@ function showMembers(data){
@@ -199,10 +199,10 @@ function showMembers(data){
|
|
|
|
|
$('<td/>').text(member.state).appendTo(row); |
|
|
|
|
let col = $('<td/>'); |
|
|
|
|
console.log("data",data); |
|
|
|
|
if (member.state.includes("moderator")) { |
|
|
|
|
if (!member.state.includes("owner")) $('<button/>',{onclick:'dropMod("'+member.email+'","'+list_mail+'")'}).text("- moderator").appendTo(col); |
|
|
|
|
if (member.state.includes("Moderator")) { |
|
|
|
|
if (!member.state.includes("Besitzer")) $('<button/>',{onclick:'dropMod("'+member.email+'","'+list_mail+'")'}).text("- moderator").appendTo(col); |
|
|
|
|
} else $('<button/>',{onclick:'addMod("'+member.email+'","'+list_mail+'")'}).text("+ moderator").appendTo(col); |
|
|
|
|
if (!member.state.includes("owner")) $('<button/>',{onclick:'dropMember("'+member.email+'","'+list_mail+'")'}).text("remove").appendTo(col); |
|
|
|
|
if (!member.state.includes("Besitzer")) $('<button/>',{onclick:'dropMember("'+member.email+'","'+list_mail+'")'}).text("remove").appendTo(col); |
|
|
|
|
col.appendTo(row); |
|
|
|
|
|
|
|
|
|
row.appendTo('#memberlist'); |
|
|
|
|