title-image popup in event view

This commit is contained in:
jona 2023-03-23 11:21:40 +01:00
parent cee76689eb
commit cfc1597158

View file

@ -127,6 +127,11 @@
> >
<span v-else>{{ extra.value }}</span> <span v-else>{{ extra.value }}</span>
</event-metadata-block> </event-metadata-block>
<event-metadata-block v-if="event.picture" :title="$t('Headline picture')">
<div style="position: relative" @click="$emit('showHeadlineModal', true)">
<img :src="event.picture.url" style="width: 100%; cursor: zoom-in" />
</div>
</event-metadata-block>
</div> </div>
</template> </template>
<script lang="ts"> <script lang="ts">
@ -164,6 +169,7 @@ export default class EventMetadataSidebar extends Vue {
@Prop({ type: Object as PropType<IConfig>, required: true }) config!: IConfig; @Prop({ type: Object as PropType<IConfig>, required: true }) config!: IConfig;
@Prop({ required: true }) user!: IUser | undefined; @Prop({ required: true }) user!: IUser | undefined;
@Prop({ required: false, default: false }) showMap!: boolean; @Prop({ required: false, default: false }) showMap!: boolean;
@Prop({ required: false, default: false }) showImage!: boolean;
RouteName = RouteName; RouteName = RouteName;