From 4f401f4eda29e8c857159ec3db987656a49199a0 Mon Sep 17 00:00:00 2001 From: valentinkolb Date: Wed, 29 May 2024 14:20:31 +0200 Subject: [PATCH] feat(eventLists): hide share list for non admins --- .gitea/workflows/cicd.yml | 2 +- config.ts | 2 +- .../e/:eventId/EventLists/EventListsRouter.tsx | 12 ++++++------ src/pages/test/DebugPage.tsx | 9 ++++++++- 4 files changed, 16 insertions(+), 9 deletions(-) diff --git a/.gitea/workflows/cicd.yml b/.gitea/workflows/cicd.yml index 5172877..999123d 100644 --- a/.gitea/workflows/cicd.yml +++ b/.gitea/workflows/cicd.yml @@ -29,4 +29,4 @@ jobs: tags: git.stuve.uni-ulm.de/stuve-it/stuve-it-frontend:latest - name: Trigger webhook - run: curl -X POST ${{ secrets.WEB HOOK_URL }} \ No newline at end of file + run: curl -X POST ${{ secrets.WEBHOOK_URL }} \ No newline at end of file diff --git a/config.ts b/config.ts index 96ab00b..78255fb 100644 --- a/config.ts +++ b/config.ts @@ -9,5 +9,5 @@ export const PB_STORAGE_KEY = "stuve-it-login-record" // general export const APP_NAME = "StuVe IT" -export const APP_VERSION = "0.8.1 (beta)" +export const APP_VERSION = "0.8.5 (beta)" export const APP_URL = "https://it.stuve.uni-ulm.de" \ No newline at end of file diff --git a/src/pages/events/e/:eventId/EventLists/EventListsRouter.tsx b/src/pages/events/e/:eventId/EventLists/EventListsRouter.tsx index 8a2cf4c..5241826 100644 --- a/src/pages/events/e/:eventId/EventLists/EventListsRouter.tsx +++ b/src/pages/events/e/:eventId/EventLists/EventListsRouter.tsx @@ -28,11 +28,6 @@ const viewNav = [ title: "Anmeldungen", icon: , to: "search" - }, - { - title: "Listen Teilen", - icon: , - to: "share" } ] }, @@ -43,6 +38,11 @@ const editNav = [ { label: "Einstellungen", children: [ + { + title: "Listen Teilen", + icon: , + to: "share" + }, { title: "Formulare", icon: , @@ -109,9 +109,9 @@ export default function EventListsRouter({event}: { event: EventModel }) { }/> }/> - }/> {canEditEvent && <> + }/> }/> }/> } diff --git a/src/pages/test/DebugPage.tsx b/src/pages/test/DebugPage.tsx index 73c851d..0244a52 100644 --- a/src/pages/test/DebugPage.tsx +++ b/src/pages/test/DebugPage.tsx @@ -1,4 +1,4 @@ -import {useShowDebug} from "@/components/ShowDebug.tsx"; +import ShowDebug, {useShowDebug} from "@/components/ShowDebug.tsx"; import {ActionIcon, Alert, Divider, Group, LoadingOverlay, Pagination, Text, TextInput, Title} from "@mantine/core"; import {useForm} from "@mantine/form"; import {useQuery} from "@tanstack/react-query"; @@ -58,6 +58,13 @@ export default function DebugPage() {
+ + Mit diesem Tool kannst du Queries debuggen. + Gib einfach den Namen der Collection ein und füge Filter, Sortierung und Expansion hinzu. +
+ Über das Select Feld kannst du die Ausgabe auf ein bestimmtes Feld reduzieren, anstatt die gesamten + Records zu sehen. +