Skip to content

Commit

Permalink
fix: use resource creation date instead of record
Browse files Browse the repository at this point in the history
  • Loading branch information
AlitaBernachot committed Jan 24, 2025
1 parent 435a18a commit 129b94e
Showing 1 changed file with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ <h5 translate class="font-medium text-black text-sm mb-[2px] mt-[16px]">
<gn-ui-expandable-panel
*ngIf="
metadata.lineage ||
metadata.recordUpdated ||
metadata.resourceUpdated ||
metadata.updateFrequency ||
metadata.status
"
Expand Down Expand Up @@ -160,16 +160,16 @@ <h5 translate class="font-medium text-black text-sm mb-[2px] mt-[16px]">
<div
class="py-6 px-6 rounded bg-gray-100 grid grid-cols-2 gap-y-6 gap-x-[20px] text-gray-700"
>
<div *ngIf="metadata.recordCreated">
<div *ngIf="metadata.resourceCreated">
<p class="text-sm" translate>record.metadata.creation</p>
<p class="text-primary font-medium mt-1">
{{ metadata.recordCreated.toLocaleDateString() }}
{{ metadata.resourceCreated.toLocaleDateString() }}
</p>
</div>
<div *ngIf="metadata.recordPublished">
<div *ngIf="metadata.resourcePublished">
<p class="text-sm" translate>record.metadata.publication</p>
<p class="text-primary font-medium mt-1">
{{ metadata.recordPublished.toLocaleDateString() }}
{{ metadata.resourcePublished.toLocaleDateString() }}
</p>
</div>
<div *ngIf="updateFrequency">
Expand Down

0 comments on commit 129b94e

Please sign in to comment.