Commit 9190f9e4 authored by schneider210's avatar schneider210
Browse files

refactor: provide new component "annotationlist"

parent a44038d4
Pipeline #200924 passed with stages
in 3 minutes and 33 seconds
<template>
<q-list>
<q-item
v-for="annotation in hotAnnotations"
:id="'list' + annotation.strippedId"
:key="annotation.strippedId"
class="q-pa-sm q-pl-xs q-mb-xs"
clickable
padding="xs"
@click="toggle(annotation); statusCheck();"
>
<q-item-section
avatar
class="q-mr-none"
>
<q-icon
:name="getIcon(annotation.body['x-content-type'])"
size="16px"
/>
</q-item-section>
<q-item-section>
<AnnotationUrls :content="annotation.body.value" />
</q-item-section>
</q-item>
</q-list>
</template>
<script>
import AnnotationUrls from '@/components/urls.vue';
export default {
name: 'AnnotationList',
components: {
AnnotationUrls,
},
props: {
getIcon: {
type: Function,
default: () => null,
},
hotAnnotations: {
type: Array,
default: () => [],
},
toggle: {
type: Function,
default: () => null,
},
statusCheck: {
type: Function,
default: () => null,
},
},
};
</script>
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment