From 4c0888d947642016d51c6e2e2e682d2bb9d6c112 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Andr=C3=A9=20Schmidt?=
<9435005+AnSch1510@users.noreply.github.com>
Date: Mon, 1 Jul 2024 19:47:04 +0200
Subject: [PATCH 1/3] remove theme_color and background_color
---
src/client/public/manifest.webmanifest | 2 --
src/client/src/index.html | 1 -
2 files changed, 3 deletions(-)
diff --git a/src/client/public/manifest.webmanifest b/src/client/public/manifest.webmanifest
index e4fcce2..50c8dd0 100644
--- a/src/client/public/manifest.webmanifest
+++ b/src/client/public/manifest.webmanifest
@@ -1,8 +1,6 @@
{
"name": "Minigolf Freitag",
"short_name": "Minigolf Freitag",
- "theme_color": "#9e48d9",
- "background_color": "#13276c",
"display": "standalone",
"scope": "./",
"start_url": "./events",
diff --git a/src/client/src/index.html b/src/client/src/index.html
index f937e89..5ff12e2 100644
--- a/src/client/src/index.html
+++ b/src/client/src/index.html
@@ -9,7 +9,6 @@
content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no, viewport-fit=cover"
/>
-
From 80bbb164aa62a9fc64ec837f3e02d639ab554e3e Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Andr=C3=A9=20Schmidt?=
<9435005+AnSch1510@users.noreply.github.com>
Date: Mon, 1 Jul 2024 21:06:06 +0200
Subject: [PATCH 2/3] add user by entering name to search box
---
.../components/users/user-dialog/user-dialog.component.ts | 7 ++++++-
src/client/src/app/components/users/users.component.html | 4 ++--
2 files changed, 8 insertions(+), 3 deletions(-)
diff --git a/src/client/src/app/components/users/user-dialog/user-dialog.component.ts b/src/client/src/app/components/users/user-dialog/user-dialog.component.ts
index 2a7cd7f..3318cf4 100644
--- a/src/client/src/app/components/users/user-dialog/user-dialog.component.ts
+++ b/src/client/src/app/components/users/user-dialog/user-dialog.component.ts
@@ -150,7 +150,7 @@ export class UserDialogComponent {
);
}
- public open(user?: User) {
+ public edit(user: User) {
this.userToUpdate.set(user);
this.form.reset(
user
@@ -169,6 +169,11 @@ export class UserDialogComponent {
this.visible.set(true);
}
+ public create(user: string) {
+ this.form.reset({ alias: user });
+ this.visible.set(true);
+ }
+
protected onAddAvoid(user: User) {
this.form.controls.preferences.controls.avoid.setValue([...this.avoid(), user.id]);
}
diff --git a/src/client/src/app/components/users/users.component.html b/src/client/src/app/components/users/users.component.html
index 784cdfd..e6f8334 100644
--- a/src/client/src/app/components/users/users.component.html
+++ b/src/client/src/app/components/users/users.component.html
@@ -26,7 +26,7 @@
+ {{ translations.users_footer_admins() }}: + {{ admins().length }} + +
++ {{ translations.users_footer_players() }}: + {{ players().length }} + +
+