Sprava eventu a organizaci
This commit is contained in:
@@ -0,0 +1,36 @@
|
||||
<script setup>
|
||||
|
||||
const props = defineProps({
|
||||
items: {
|
||||
type: Array,
|
||||
required: true
|
||||
},
|
||||
myOrganizationsIds: {
|
||||
type: Array,
|
||||
required: false
|
||||
}
|
||||
})
|
||||
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<q-list bordered separator>
|
||||
<q-item
|
||||
clickable
|
||||
:to="{name: 'organizationDetail', params: {id: organization.id }}"
|
||||
v-ripple
|
||||
v-for="organization of items"
|
||||
:key="organization"
|
||||
>
|
||||
<q-item-section avatar>
|
||||
<q-avatar icon="groups" color="primary" text-color="white"/>
|
||||
</q-item-section>
|
||||
<q-item-section>
|
||||
<q-item-label>
|
||||
{{ organization.name }}
|
||||
<q-icon name="star" color="gold" v-if="myOrganizationsIds.includes(organization.id)"/>
|
||||
</q-item-label>
|
||||
</q-item-section>
|
||||
</q-item>
|
||||
</q-list>
|
||||
</template>
|
||||
Reference in New Issue
Block a user