Browse Source
Merge pull request #1430 from SauceCat/feature/display_image
support image display and url handling
pull/1469/head
Hiroki Nakayama
3 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
13 additions and
1 deletions
-
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"> |
|
|
|