feat(eventLists): hide share list for non admins
Build and Push Docker image / build-and-push (push) Successful in 4m52s
Details
Build and Push Docker image / build-and-push (push) Successful in 4m52s
Details
This commit is contained in:
parent
21edac4e43
commit
4f401f4eda
|
@ -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 }}
|
||||
run: curl -X POST ${{ secrets.WEBHOOK_URL }}
|
|
@ -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"
|
|
@ -28,11 +28,6 @@ const viewNav = [
|
|||
title: "Anmeldungen",
|
||||
icon: <IconUserSearch size={16}/>,
|
||||
to: "search"
|
||||
},
|
||||
{
|
||||
title: "Listen Teilen",
|
||||
icon: <IconLink size={16}/>,
|
||||
to: "share"
|
||||
}
|
||||
]
|
||||
},
|
||||
|
@ -43,6 +38,11 @@ const editNav = [
|
|||
{
|
||||
label: "Einstellungen",
|
||||
children: [
|
||||
{
|
||||
title: "Listen Teilen",
|
||||
icon: <IconLink size={16}/>,
|
||||
to: "share"
|
||||
},
|
||||
{
|
||||
title: "Formulare",
|
||||
icon: <IconForms size={16}/>,
|
||||
|
@ -109,9 +109,9 @@ export default function EventListsRouter({event}: { event: EventModel }) {
|
|||
<Route index element={<Navigate to={"overview"} replace/>}/>
|
||||
|
||||
<Route path={"search"} element={<EventListSearch event={event}/>}/>
|
||||
<Route path={"share"} element={<ShareEventLists event={event}/>}/>
|
||||
|
||||
{canEditEvent && <>
|
||||
<Route path={"share"} element={<ShareEventLists event={event}/>}/>
|
||||
<Route path={"e/status"} element={<EditDefaultEntryStatusSchema event={event}/>}/>
|
||||
<Route path={"e/questions"} element={<EditDefaultEntryQuestionSchema event={event}/>}/>
|
||||
</>}
|
||||
|
|
|
@ -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() {
|
|||
</div>
|
||||
|
||||
<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
|
||||
label={"Collection Name"}
|
||||
placeholder={"collectionName"}
|
||||
|
|
Loading…
Reference in New Issue