forked from verdnatura/salix-front
fix(VnNotes): refs #6336 VnAvatar
This commit is contained in:
parent
9d381a5c82
commit
952d5bf543
|
@ -32,7 +32,7 @@ async function insert() {
|
||||||
<template>
|
<template>
|
||||||
<QCard class="q-pa-xs q-mb-xl full-width" v-if="$props.addNote">
|
<QCard class="q-pa-xs q-mb-xl full-width" v-if="$props.addNote">
|
||||||
<QCardSection horizontal>
|
<QCardSection horizontal>
|
||||||
<VnAvatar :descriptor="false" :worker-id="1" size="md" />
|
<VnAvatar :worker-id="currentUser.id" size="md" />
|
||||||
<div class="full-width row justify-between q-pa-xs">
|
<div class="full-width row justify-between q-pa-xs">
|
||||||
<VnUserLink :name="t('New note')" :worker-id="currentUser.id" />
|
<VnUserLink :name="t('New note')" :worker-id="currentUser.id" />
|
||||||
{{ t('globals.now') }}
|
{{ t('globals.now') }}
|
||||||
|
|
|
@ -31,7 +31,7 @@ const entityId = computed(() => {
|
||||||
});
|
});
|
||||||
|
|
||||||
const worker = ref();
|
const worker = ref();
|
||||||
const filter = { where: { id: route.params.id}};
|
const filter = { where: { id: entityId } };
|
||||||
|
|
||||||
const sip = ref(null);
|
const sip = ref(null);
|
||||||
|
|
||||||
|
@ -60,7 +60,7 @@ const setData = (entity) => {
|
||||||
<CardDescriptor
|
<CardDescriptor
|
||||||
module="Worker"
|
module="Worker"
|
||||||
data-key="workerData"
|
data-key="workerData"
|
||||||
:url="`Workers/summary`"
|
url="Workers/summary"
|
||||||
:filter="filter"
|
:filter="filter"
|
||||||
:title="data.title"
|
:title="data.title"
|
||||||
:subtitle="data.subtitle"
|
:subtitle="data.subtitle"
|
||||||
|
|
Loading…
Reference in New Issue