Browse Source

support image display and url handling

pull/1430/head
saucecat 3 years ago
parent
commit
0e40a5937f
1 changed files with 13 additions and 1 deletions
  1. 14
      frontend/components/tasks/metadata/ListMetadata.vue

14
frontend/components/tasks/metadata/ListMetadata.vue

@ -7,7 +7,19 @@
:no-data-text="$t('vuetify.noDataAvailable')"
disable-pagination
class="elevation-1"
/>
>
<template v-slot:item.value="{ item }">
<template v-if="item.key.indexOf('im_url') > -1">
<a :href="item.value" target="_blank"><img :src="item.value" style="height: 250px" /></a>
</template>
<template v-else-if="item.key.indexOf('url') > -1">
<a :href="item.value" target="_blank">{{ item.value }}</a>
</template>
<template v-else>
{{ item.value }}
</template>
</template>
</v-data-table>
</template>
<script lang="ts">

Loading…
Cancel
Save