add worker img

This commit is contained in:
Pau 2022-11-22 14:35:40 +01:00
parent 863a74ee67
commit f5f47f4994
1 changed files with 5 additions and 0 deletions

View File

@ -65,10 +65,15 @@ function sipExtension() {
if (worker.value.sip) return worker.value.sip.extension; if (worker.value.sip) return worker.value.sip.extension;
return '-'; return '-';
} }
function getWorkerAvatar() {
return `/api/Images/user/160x160/${worker.value.user.id}/download`;
}
</script> </script>
<template> <template>
<card-descriptor v-if="worker" module="Worker" :data="worker" :description="worker.user.nickname"> <card-descriptor v-if="worker" module="Worker" :data="worker" :description="worker.user.nickname">
<template #body> <template #body>
<q-img :src="getWorkerAvatar()" class="q-mb-md" style="width: 100px; height: 100px" />
<q-list> <q-list>
<q-item> <q-item>
<q-item-section side> <q-item-section side>