Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Michal Čížek
flea-market-manager
Commits
5dd1ee72
Commit
5dd1ee72
authored
May 18, 2022
by
Filip Hujer
Committed by
cizek
May 18, 2022
Browse files
Add button to event to list stands
parent
7929655d
Changes
3
Hide whitespace changes
Inline
Side-by-side
frontend/src/modules/app-routes.tsx
View file @
5dd1ee72
...
...
@@ -42,9 +42,9 @@ export const AppRoutes = () => {
<
Route
path
=
"/events/:id/edit"
element
=
{
<
CreateUpdateEvent
/>
}
/>
<
Route
element
=
{
<
ProtectedRoute
/>
}
>
<
Route
path
=
"/locations"
element
=
{
<
Locations
/>
}
/>
<
Route
path
=
"/stands/list/events/:id"
element
=
{
<
EventStands
/>
}
/>
</
Route
>
<
Route
path
=
"*"
element
=
{
<
NotFound
/>
}
/>
<
Route
path
=
"/stands/list/events/:id"
element
=
{
<
EventStands
/>
}
/>
<
Route
path
=
"/stand-reservation/:id"
element
=
{
<
StandReservation
/>
}
...
...
frontend/src/modules/event/event-stands-action-cell.tsx
View file @
5dd1ee72
...
...
@@ -62,7 +62,7 @@ export const EventStandActionsCell = ({ row }: TableCellProps<EventStand>) => {
variant
:
"
info
"
,
});
},
prompt
:
"
Are you sure you want to delete this sta
h
d?
"
,
prompt
:
"
Are you sure you want to delete this sta
n
d?
"
,
},
title
:
"
Delete stand
"
,
});
...
...
frontend/src/modules/events/events.tsx
View file @
5dd1ee72
...
...
@@ -248,6 +248,12 @@ export const Events = () => {
<
td
>
{
user
.
userRole
==
"
MANAGER
"
&&
(
<
Group
position
=
"center"
>
<
ActionIcon
variant
=
"hover"
onClick
=
{
()
=>
navigate
(
`/stands/list/events/
${
row
.
id
}
`
)
}
>
<
BuildingStore
color
=
"black"
/>
</
ActionIcon
>
<
ActionIcon
variant
=
"hover"
onClick
=
{
()
=>
navigate
(
`/events/
${
row
.
id
}
/edit`
)
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment