1
0
mirror of https://github.com/spacebarchat/client.git synced 2024-11-22 02:12:38 +01:00

temporarily disable kick/ban context menu items

This commit is contained in:
Puyodead1 2023-12-09 21:34:52 -05:00
parent 802f31569b
commit 044a17bfaf
No known key found for this signature in database
GPG Key ID: A4FA4FEC0DD353FC

View File

@ -87,36 +87,36 @@ export default {
const items: IContextMenuItem[] = [];
if (permissions.has("KICK_MEMBERS")) {
items.push({
label: `Kick ${them.user!.username}`,
onClick: () => {
// openModal(KickModal, {
// member: them,
// });
},
color: "red",
hover: {
backgroundColor: "red",
color: "white",
},
});
}
// if (permissions.has("KICK_MEMBERS")) {
// items.push({
// label: `Kick ${them.user!.username}`,
// onClick: () => {
// // openModal(KickModal, {
// // member: them,
// // });
// },
// color: "red",
// hover: {
// backgroundColor: "red",
// color: "white",
// },
// });
// }
if (permissions.has("BAN_MEMBERS")) {
items.push({
label: `Ban ${them.user!.username}`,
onClick: () => {
// member.kick()
console.log("ban member");
},
color: "red",
hover: {
backgroundColor: "red",
color: "white",
},
});
}
// if (permissions.has("BAN_MEMBERS")) {
// items.push({
// label: `Ban ${them.user!.username}`,
// onClick: () => {
// // member.kick()
// console.log("ban member");
// },
// color: "red",
// hover: {
// backgroundColor: "red",
// color: "white",
// },
// });
// }
return items;
},