refactor: refs #8673 simplify evaNotes display logic in ExtraCommunity.vue
gitea/salix-front/pipeline/pr-dev This commit looks good Details

This commit is contained in:
Benjamin Esteve 2025-03-27 12:54:52 +01:00
parent 0d1f2f33e0
commit c1536bd762
1 changed files with 2 additions and 19 deletions

View File

@ -612,28 +612,11 @@ watch(route, () => {
<QTd class="text-right"> <QTd class="text-right">
<span>{{ entry.volumeKg }}</span> <span>{{ entry.volumeKg }}</span>
</QTd> </QTd>
<QTd :colspan="entry.showEvaNotes ? 4 : 1"> <QTd :colspan="5" class="text-right">
<span <span>
v-if="entry.showEvaNotes"
style="white-space: pre-wrap; word-break: break-word"
>
{{ entry.evaNotes }} {{ entry.evaNotes }}
</span> </span>
</QTd> </QTd>
<QTd v-if="!entry.showEvaNotes" />
<QTd v-if="!entry.showEvaNotes" />
<QTd v-if="!entry.showEvaNotes" />
<QTd>
<QBtn
v-if="entry.evaNotes"
icon="comment"
size="md"
flat
color="primary"
@click="entry.showEvaNotes = !entry.showEvaNotes"
>
</QBtn>
</QTd>
</QTr> </QTr>
</template> </template>
</QTable> </QTable>