hopefully it's fine now?
This commit is contained in:
@@ -297,6 +297,25 @@ public class SyncshellAdminUI : WindowMediatorSubscriberBase
|
||||
var ownerTab = ImRaii.TabItem("Owner Settings");
|
||||
if (ownerTab)
|
||||
{
|
||||
bool isChatDisabled = perm.IsDisableChat();
|
||||
ImGui.AlignTextToFramePadding();
|
||||
ImGui.TextUnformatted("Syncshell Chat");
|
||||
_uiSharedService.BooleanToColoredIcon(!isChatDisabled);
|
||||
ImGui.SameLine(230);
|
||||
using (ImRaii.PushColor(ImGuiCol.Text, isChatDisabled ? UIColors.Get("PairBlue") : UIColors.Get("DimRed")))
|
||||
{
|
||||
if (_uiSharedService.IconTextButton(
|
||||
isChatDisabled ? FontAwesomeIcon.Comment : FontAwesomeIcon.Ban,
|
||||
isChatDisabled ? "Enable syncshell chat" : "Disable syncshell chat"))
|
||||
{
|
||||
perm.SetDisableChat(!isChatDisabled);
|
||||
_ = _apiController.GroupChangeGroupPermissionState(new(GroupFullInfo.Group, perm));
|
||||
}
|
||||
}
|
||||
UiSharedService.AttachToolTip("Disables syncshell chat for all members.");
|
||||
|
||||
ImGuiHelpers.ScaledDummy(6f);
|
||||
|
||||
ImGui.AlignTextToFramePadding();
|
||||
ImGui.TextUnformatted("New Password");
|
||||
var availableWidth = ImGui.GetWindowContentRegionMax().X - ImGui.GetWindowContentRegionMin().X;
|
||||
|
||||
Reference in New Issue
Block a user