Format ISO datetime to allow text wrapping in Imagery view thumbs (#3415)

Format ISO datetime to allow text wrapping
This commit is contained in:
Charles Hacskaylo 2020-10-02 13:43:32 -07:00 committed by GitHub
parent baa8078d23
commit 257a8e2e2d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -153,9 +153,12 @@ export default {
: this.imageUrl;
},
getTime(datum) {
return datum
let dateTimeStr = datum
? this.timeFormat.format(datum)
: this.time;
// Replace ISO "T" with a space to allow wrapping
return dateTimeStr ? dateTimeStr.replace("T", " ") : "";
},
handleScroll() {
const thumbsWrapper = this.$refs.thumbsWrapper;