stable

Clone or download

Read-only

fix: wrong display for relative date first

Given user has "Relative dates display" preference set to "Relative date first", Then in hidden history & versions pages the display of dates shouldn't be broken. Took the opportunity to move the display of dates in Document in a common component to not have to repeat ourselves and to simplify setup of tests. The remaining occurence of direct <tlp-relative-date> usage is in custom properties display in quicklook. Since the type to define property value is generic for all property types (accept string | number | null), I prefer to not clutter the DocumentRelativeDate with this specificity. Part of story #28263: edit office document stored in Document Change-Id: I7299f8943b7073cdd1c482358c93ef1aa65864d2

Modified Files

Name
M plugins/document/scripts/document/components/AdvancedSearch/SearchResult/Cells/CellDate.test.ts +8 −17 Go to diff View file
M plugins/document/scripts/document/components/AdvancedSearch/SearchResult/Cells/CellDate.vue +3 −31 Go to diff View file
M plugins/document/scripts/document/components/AdvancedSearch/SearchResult/Cells/CellLocation.test.ts +0 −3 Go to diff View file
D plugins/document/scripts/document/components/AdvancedSearch/SearchResult/Cells/__snapshots__/CellDate.test.ts.snap +0 −17 Go to diff View file
A plugins/document/scripts/document/components/Date/DocumentRelativeDate.test.ts +77 −0 Go to diff View file
A plugins/document/scripts/document/components/Date/DocumentRelativeDate.vue +59 −0 Go to diff View file
A plugins/document/scripts/document/components/Date/__snapshots__/DocumentRelativeDate.test.ts.snap +29 −0 Go to diff View file
M plugins/document/scripts/document/components/Folder/FolderContentRow.test.js +2 −4 Go to diff View file
M plugins/document/scripts/document/components/Folder/FolderContentRow.vue +3 −24 Go to diff View file
M plugins/document/scripts/document/components/History/HistoryLogsContent.test.ts +0 −72 Go to diff View file
M plugins/document/scripts/document/components/History/HistoryLogsContent.vue +2 −30 Go to diff View file
M plugins/document/scripts/document/components/History/__snapshots__/HistoryLogsContent.test.ts.snap +15 −60 Go to diff View file
M plugins/document/scripts/document/components/QuickLook/QuickLookDocumentProperties.test.ts +7 −18 Go to diff View file
M plugins/document/scripts/document/components/QuickLook/QuickLookDocumentProperties.vue +7 −35 Go to diff View file
M plugins/document/scripts/document/components/Versions/HistoryVersionsContentRow.test.ts +0 −16 Go to diff View file
M plugins/document/scripts/document/components/Versions/HistoryVersionsContentRow.vue +3 −30 Go to diff View file