1
0
Fork 0
mirror of https://framagit.org/framasoft/mobilizon.git synced 2024-12-23 08:22:50 +00:00

Fix custom icons in metadata list

Signed-off-by: Thomas Citharel <tcit@tcit.fr>
This commit is contained in:
Thomas Citharel 2022-10-06 09:54:05 +02:00
parent 1a31d9b54e
commit 7ccf42e313
No known key found for this signature in database
GPG key ID: A061B9DDE0CA0773

View file

@ -100,7 +100,17 @@
:title="extra.title || extra.label"
:key="extra.key"
>
<template #icon> <o-icon :icon="extra.icon" customSize="36" /> </template>
<template #icon>
<img
v-if="extra.icon && extra.icon.substring(0, 7) === 'mz:icon'"
:src="`/img/${extra.icon.substring(8)}_monochrome.svg`"
width="36"
height="36"
alt=""
/>
<o-icon v-else-if="extra.icon" :icon="extra.icon" customSize="36" />
<o-icon v-else customSize="36" icon="help-circle" />
</template>
<span
v-if="
((extra.type == EventMetadataType.STRING &&