More attempts

pull/37/head
Varun Patil 2022-09-12 23:22:45 -07:00
parent 4dafc434f4
commit c0ea836510
3 changed files with 11 additions and 3 deletions

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -23,6 +23,7 @@
:src="getSrc()"
:key="data.fileid"
ref="image"
@click="click"
@error="error"
@load="load"
@ -77,6 +78,13 @@ export default class Photo extends Mixins(GlobalMixin) {
return getPreviewUrl(this.data.fileid, this.data.etag);
}
mounted() {
// Check if already loaded
if ((<HTMLImageElement>this.$refs.image).complete) {
this.load();
}
}
/** Image loaded successfully */
load() {
this.data.flag |= this.c.FLAG_LOADED;