admin messages and not in direct

This commit is contained in:
simplonco
2023-01-16 00:34:20 +01:00
parent d60f2f0c9f
commit 134fa0fef4
4 changed files with 14 additions and 3 deletions

View File

@@ -8,7 +8,7 @@
{
lines_width: "1px",
lines_color: "rgb(30, 30, 30)",
lines_light_color: "rgb(90, 90, 90)",
lines_light_color: "rgb(70, 70, 70)",
bg_color: "bisque",
bg_light_color: "bisque",

View File

@@ -35,10 +35,10 @@
{
to_print("in make_user_admin");
response = await make_admin($settings_user);
//show errors
if (response.status >= 300 || response.error)
show_error = response.error;
layout.set("room");
}
async function ban_mute_user()
{
@@ -84,7 +84,7 @@
game invitation
</Button>
{#if back === "room_set"}
{#if back === "room_set" && $current_room.type !== "direct"}
<Button on:click={make_user_admin}>
make admin
</Button>