fix(front): add announcements link on EventParticipationCard as well as EventView

Signed-off-by: Thomas Citharel <tcit@tcit.fr>
This commit is contained in:
Thomas Citharel 2023-12-14 10:54:10 +01:00
parent ee6381463d
commit 83eb5c6a69
No known key found for this signature in database
GPG key ID: A061B9DDE0CA0773

View file

@ -273,6 +273,28 @@
</div> </div>
</o-dropdown-item> </o-dropdown-item>
<o-dropdown-item
aria-role="listitem"
has-link
v-if="
![
ParticipantRole.PARTICIPANT,
ParticipantRole.NOT_APPROVED,
].includes(participation.role)
"
>
<router-link
class="flex gap-1"
:to="{
name: RouteName.ANNOUNCEMENTS,
params: { eventId: participation.event?.uuid },
}"
>
<Bullhorn />
{{ t("Announcements") }}
</router-link>
</o-dropdown-item>
<o-dropdown-item aria-role="listitem"> <o-dropdown-item aria-role="listitem">
<router-link <router-link
class="flex gap-1" class="flex gap-1"
@ -324,6 +346,7 @@ import { Dialog } from "@/plugins/dialog";
import { Snackbar } from "@/plugins/snackbar"; import { Snackbar } from "@/plugins/snackbar";
import { useDeleteEvent } from "@/composition/apollo/event"; import { useDeleteEvent } from "@/composition/apollo/event";
import Tag from "@/components/TagElement.vue"; import Tag from "@/components/TagElement.vue";
import Bullhorn from "vue-material-design-icons/Bullhorn.vue";
const props = defineProps<{ const props = defineProps<{
participation: IParticipant; participation: IParticipant;