refactor: refs #7414 update VnLog component to change display order value changes on update action #1309

Merged
jtubau merged 17 commits from 7414-ticketHistoryChanges into dev 2025-02-28 14:04:47 +00:00
1 changed files with 20 additions and 8 deletions

View File

@ -641,15 +641,7 @@ watch(
>
{{ prop.nameI18n }}:
</span>
<VnJsonValue :value="prop.val.val" />
<span
v-if="prop.val.id"
class="id-value"
>
#{{ prop.val.id }}
</span>
<span v-if="log.action == 'update'">
<VnJsonValue
:value="prop.old.val"

se puede usar v-text="#${prop.old.id}" y así te ahorras 2 líneas

se puede usar v-text="`#${prop.old.id}`" y así te ahorras 2 líneas
/>
@ -659,6 +651,26 @@ watch(
>
#{{ prop.old.id }}
</span>
<VnJsonValue
:value="prop.val.val"
/>
<span
v-if="prop.val.id"
class="id-value"
>
#{{ prop.val.id }}
</span>
</span>
<span v-else="prop.old.val">
<VnJsonValue
:value="prop.val.val"
/>
<span
v-if="prop.old.id"
class="id-value"
>#{{ prop.old.id }}</span
>
</span>
</div>
</span>