Commit dfb7e7a0 authored by Robin Tissot's avatar Robin Tissot
Browse files

Fallback to large thumbnail instead of trying to display tifs in transcription modal.

parent f47bd66e
......@@ -202,7 +202,13 @@ export default Vue.extend({
return moment.tz(this.line.currentTrans.version_updated_at, this.timeZone);
},
modalImgSrc() {
return this.$store.state.parts.image.uri;
if (this.$store.state.parts.image.uri.endsWith('.tif') ||
this.$store.state.parts.image.uri.endsWith('.tiff')) {
// can't display tifs so fallback to large thumbnail
return this.$store.state.parts.image.thumbnails.large;
} else {
return this.$store.state.parts.image.uri;
}
},
otherTranscriptions() {
let a = Object
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment