closes #4834 create-worker-module #28
|
@ -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>
|
||||||
|
|
Loading…
Reference in New Issue