]> git.ipfire.org Git - thirdparty/paperless-ngx.git/commitdiff
Fix: consistently use created_date for doc display (#6758)
authorshamoon <4887959+shamoon@users.noreply.github.com>
Fri, 17 May 2024 17:20:40 +0000 (10:20 -0700)
committerGitHub <noreply@github.com>
Fri, 17 May 2024 17:20:40 +0000 (10:20 -0700)
src-ui/src/app/components/document-list/document-card-large/document-card-large.component.html
src-ui/src/app/components/document-list/document-card-small/document-card-small.component.html

index ad9ce2e8939fc43d977c733510d50eb1ca8e4add..51f51a517a3d3a0a6d287748a9900d7bad333575 100644 (file)
@@ -95,7 +95,7 @@
               @if (displayFields.includes(DisplayField.CREATED) || displayFields.includes(DisplayField.ADDED)) {
                 <ng-template #dateTooltip>
                   <div class="d-flex flex-column text-light">
-                    <span i18n>Created: {{ document.created | customDate }}</span>
+                    <span i18n>Created: {{ document.created_date | customDate }}</span>
                     <span i18n>Added: {{ document.added | customDate }}</span>
                     <span i18n>Modified: {{ document.modified | customDate }}</span>
                   </div>
index 5d565ddf2a6ab7ed58cae32d7079d143fceab2aa..9667163fb0bf719fcc887c976b62d8775b313b3d 100644 (file)
           <div class="list-group-item bg-transparent p-0 border-0 d-flex flex-wrap-reverse justify-content-between">
             <ng-template #dateTooltip>
               <div class="d-flex flex-column text-light">
-                <span i18n>Created: {{ document.created | customDate }}</span>
+                <span i18n>Created: {{ document.created_date | customDate }}</span>
                 <span i18n>Added: {{ document.added | customDate }}</span>
                 <span i18n>Modified: {{ document.modified | customDate }}</span>
               </div>
             </ng-template>
             <div class="ps-0 p-1" placement="top" [ngbTooltip]="dateTooltip">
               <i-bs width="1em" height="1em" class="me-2 text-muted" name="calendar-event"></i-bs>
-              <small>{{document.created | customDate:'mediumDate'}}</small>
+              <small>{{document.created_date | customDate:'mediumDate'}}</small>
             </div>
           </div>
         }