feat(eventLists): hide share list for non admins
Build and Push Docker image / build-and-push (push) Successful in 4m52s Details

This commit is contained in:
Valentin Kolb 2024-05-29 14:20:31 +02:00
parent 21edac4e43
commit 4f401f4eda
4 changed files with 16 additions and 9 deletions

View File

@ -9,5 +9,5 @@ export const PB_STORAGE_KEY = "stuve-it-login-record"
// general // general
export const APP_NAME = "StuVe IT" 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" export const APP_URL = "https://it.stuve.uni-ulm.de"

View File

@ -28,11 +28,6 @@ const viewNav = [
title: "Anmeldungen", title: "Anmeldungen",
icon: <IconUserSearch size={16}/>, icon: <IconUserSearch size={16}/>,
to: "search" to: "search"
},
{
title: "Listen Teilen",
icon: <IconLink size={16}/>,
to: "share"
} }
] ]
}, },
@ -43,6 +38,11 @@ const editNav = [
{ {
label: "Einstellungen", label: "Einstellungen",
children: [ children: [
{
title: "Listen Teilen",
icon: <IconLink size={16}/>,
to: "share"
},
{ {
title: "Formulare", title: "Formulare",
icon: <IconForms size={16}/>, icon: <IconForms size={16}/>,
@ -109,9 +109,9 @@ export default function EventListsRouter({event}: { event: EventModel }) {
<Route index element={<Navigate to={"overview"} replace/>}/> <Route index element={<Navigate to={"overview"} replace/>}/>
<Route path={"search"} element={<EventListSearch event={event}/>}/> <Route path={"search"} element={<EventListSearch event={event}/>}/>
<Route path={"share"} element={<ShareEventLists event={event}/>}/>
{canEditEvent && <> {canEditEvent && <>
<Route path={"share"} element={<ShareEventLists event={event}/>}/>
<Route path={"e/status"} element={<EditDefaultEntryStatusSchema event={event}/>}/> <Route path={"e/status"} element={<EditDefaultEntryStatusSchema event={event}/>}/>
<Route path={"e/questions"} element={<EditDefaultEntryQuestionSchema event={event}/>}/> <Route path={"e/questions"} element={<EditDefaultEntryQuestionSchema event={event}/>}/>
</>} </>}

View File

@ -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 {ActionIcon, Alert, Divider, Group, LoadingOverlay, Pagination, Text, TextInput, Title} from "@mantine/core";
import {useForm} from "@mantine/form"; import {useForm} from "@mantine/form";
import {useQuery} from "@tanstack/react-query"; import {useQuery} from "@tanstack/react-query";
@ -58,6 +58,13 @@ export default function DebugPage() {
</div> </div>
<div className={"section stack"}> <div className={"section stack"}>
<ShowDebug>
Mit diesem Tool kannst du Queries debuggen.
Gib einfach den Namen der Collection ein und füge Filter, Sortierung und Expansion hinzu.
<br/>
Über das Select Feld kannst du die Ausgabe auf ein bestimmtes Feld reduzieren, anstatt die gesamten
Records zu sehen.
</ShowDebug>
<TextInput <TextInput
label={"Collection Name"} label={"Collection Name"}
placeholder={"collectionName"} placeholder={"collectionName"}