closes #4834 create-worker-module #28

Merged
joan merged 27 commits from 4834-create-worker-module into dev 2023-03-08 09:54:59 +00:00
2 changed files with 6 additions and 2 deletions
Showing only changes of commit 7d0cb47405 - Show all commits

View File

@ -45,6 +45,7 @@ const { t } = useI18n();
</div>
<div v-if="$props.data" class="body q-py-sm">
<slot name="before" />
<q-list>
<q-item-label header class="ellipsis text-h5" :lines="1">
{{ $props.description }}
@ -55,6 +56,7 @@ const { t } = useI18n();
</q-item>
</q-list>
<slot name="body" />
<slot name="after" />
</div>
<!-- Skeleton -->

View File

@ -75,9 +75,11 @@ function getWorkerAvatar() {
}
</script>
<template>
<card-descriptor v-if="worker" module="Worker" :data="worker" :description="worker.user.nickname">
<template #body>
<card-descriptor v-if="worker" module="Worker" :data="worker" :description="worker.user.name">
<template #before>
<q-img :src="getWorkerAvatar()" class="q-mb-md" />
</template>
<template #body>
<q-list>
<q-item>
<q-item-section>