forked from potsda.mn/mobilizon
fix(front): add announcements link on EventParticipationCard as well as EventView
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
This commit is contained in:
parent
ee6381463d
commit
83eb5c6a69
|
@ -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;
|
||||||
|
|
Loading…
Reference in a new issue