aboutsummaryrefslogtreecommitdiff
path: root/src/components/attachment/attachment.js
diff options
context:
space:
mode:
authorshpuld <shpuld@gmail.com>2017-03-05 19:00:35 +0200
committershpuld <shpuld@gmail.com>2017-03-05 19:00:35 +0200
commite19bfb9a22f1db562de7079b71dee6e53a8a54fb (patch)
tree8f12ac8f21679e036f42e0a156f345bf4d0f2156 /src/components/attachment/attachment.js
parent015bf78dd9b17a1eac11119e38d8e83be8d791ae (diff)
parent049c74f8e87e0aa19ee416bb72c987296a3e2dc9 (diff)
Merged from develop, made 'new notices' into a 'show new' button placed on the heading element, updated headings and buttons to be more consistent with new changes (log-in, notifications/read, conversation/collapse), changed bottom 'load older' block to not disappear on click to keep screen from scrolling and changed its styling more consistent with everything else.
Diffstat (limited to 'src/components/attachment/attachment.js')
-rw-r--r--src/components/attachment/attachment.js6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/components/attachment/attachment.js b/src/components/attachment/attachment.js
index f4f6aebf..c3f52f57 100644
--- a/src/components/attachment/attachment.js
+++ b/src/components/attachment/attachment.js
@@ -29,7 +29,11 @@ const Attachment = {
}
},
toggleHidden () {
- this.showHidden = !this.showHidden
+ let img = document.createElement('img')
+ img.src = this.attachment.url
+ img.onload = () => {
+ this.showHidden = !this.showHidden
+ }
}
}
}