small style adjustment and admin view on user

This commit is contained in:
simplonco
2023-01-16 07:42:52 +01:00
parent 4cfac6bd25
commit cc389a67b7
2 changed files with 14 additions and 7 deletions

View File

@@ -9,8 +9,8 @@
lines_width: "1px", lines_width: "1px",
lines_color: "rgb(30, 30, 30)", lines_color: "rgb(30, 30, 30)",
lines_light_color: "rgb(70, 70, 70)", lines_light_color: "rgb(70, 70, 70)",
bg_color: "bisque", bg_color: "rgb(251, 156, 81)",
bg_light_color: "bisque", bg_light_color: "rgb(251, 156, 81)",
btn_color: "rgb(220, 220, 220)", btn_color: "rgb(220, 220, 220)",
btn_color_hover: "rgb(200, 200, 200)", btn_color_hover: "rgb(200, 200, 200)",
@@ -34,12 +34,12 @@
lines_width: "2px", lines_width: "2px",
lines_color: "rgb(200, 200, 200)", lines_color: "rgb(200, 200, 200)",
lines_light_color: "rgb(100, 100, 100)", lines_light_color: "rgb(100, 100, 100)",
bg_color: "rgb(35, 35, 35)", bg_color: "rgb( 50, 50, 50)",
bg_light_color: "rgb(35, 35, 35)", bg_light_color: "rgb( 35, 35, 35)",
btn_color: "rgb(220, 220, 220)", btn_color: "rgb(220, 220, 220)",
btn_color_hover: "rgb(200, 200, 200)", btn_color_hover: "rgb(100, 100, 100)",
btn_color_active: "rgb(190, 190, 190)", btn_color_active: "rgb( 90, 90, 90)",
btn_color_border: "rgb(150, 150, 150)", btn_color_border: "rgb(150, 150, 150)",
btn_light_color: "rgb(235, 235, 235)", btn_light_color: "rgb(235, 235, 235)",

View File

@@ -31,6 +31,10 @@
{ {
to_print("in view_profile"); to_print("in view_profile");
} }
function block_user()
{
to_print("in block_user");
}
async function make_user_admin() async function make_user_admin()
{ {
to_print("in make_user_admin"); to_print("in make_user_admin");
@@ -79,8 +83,11 @@
<Button on:click={game_invitation}> <Button on:click={game_invitation}>
game invitation game invitation
</Button> </Button>
<Button on:click={block_user}>
block
</Button>
{#if back === "room_set" && $current_room.type !== "direct"} {#if is_admin && back === "room_set" && $current_room.type !== "direct"}
<Button on:click={make_user_admin}> <Button on:click={make_user_admin}>
make admin make admin
</Button> </Button>