Compare commits

...

6 Commits

Author SHA1 Message Date
charlesh88
580a055a3c Fix linting errors 2020-10-02 12:13:49 -07:00
Charles Hacskaylo
6289f34527 Merge branch 'master' into fix-image-thumbs-3412 2020-10-02 11:56:00 -07:00
charlesh88
c112a3052d Merge branch 'fix-image-thumbs-3412' of https://github.com/nasa/openmct into fix-image-thumbs-3412 2020-10-01 17:11:34 -07:00
charlesh88
bf0699ceba Format ISO datetime to allow text wrapping
- Remove unneeded `toString()`;
2020-10-01 17:11:17 -07:00
Charles Hacskaylo
bb62e7953c Merge branch 'master' into fix-image-thumbs-3412 2020-10-01 16:40:44 -07:00
charlesh88
d31ee7c7e6 Format ISO datetime to allow text wrapping 2020-10-01 16:39:02 -07:00

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;