admin messages and not in direct
This commit is contained in:
@@ -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",
|
||||
|
||||
|
||||
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user