Skip to content

Commit

Permalink
Merge pull request #4122 from systeminit/jobelenus/show-asset-version
Browse files Browse the repository at this point in the history
Fix: show asset version if its not latest/editing. Dont show asset cr…
  • Loading branch information
jobelenus authored Jul 10, 2024
2 parents 657c1d8 + 32c0e30 commit dcfffc0
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
4 changes: 2 additions & 2 deletions app/web/src/components/AssetEditorHeader.vue
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@
<div
class="text-xs italic flex flex-row flex-wrap gap-x-lg text-neutral-600 dark:text-neutral-200"
>
<div>
<span class="font-bold">Created At: </span>
<div v-if="!selectedFunc">
<span class="font-bold">Asset Created At: </span>
<Timestamp :date="selectedAsset.created_at" size="long" />
</div>
<!-- TODO: Populate the created by from SDF actorHistory-->
Expand Down
7 changes: 6 additions & 1 deletion app/web/src/components/AssetListItem.vue
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,12 @@
>
<template #label>
<div class="text-xs w-full truncate flex flex-row items-center gap-1">
<div class="truncate">{{ schemaVariantDisplayName(a) }}</div>
<div class="truncate">
{{ schemaVariantDisplayName(a) }}
<template v-if="!a.canCreateNewComponents">
<i>version: {{ a.version }}</i>
</template>
</div>

<div class="ml-auto flex flex-none gap-xs shrink-0">
<EditingPill v-if="!a.isLocked" :color="a.color" />
Expand Down

0 comments on commit dcfffc0

Please sign in to comment.