mirror of
https://github.com/mattermost/mattermost.git
synced 2025-02-25 18:55:24 -06:00
MM-2033 fixes img showing infinity progress
This commit is contained in:
@@ -347,6 +347,7 @@ func getFile(c *Context, w http.ResponseWriter, r *http.Request) {
|
||||
}
|
||||
|
||||
w.Header().Set("Cache-Control", "max-age=2592000, public")
|
||||
w.Header().Set("Content-Length", strconv.Itoa(len(f)))
|
||||
w.Write(f)
|
||||
}
|
||||
|
||||
|
||||
@@ -248,6 +248,7 @@ module.exports = React.createClass({
|
||||
// display a progress indicator when the preview for an image is still loading
|
||||
var percentage = Math.floor(this.state.progress[this.state.imgId]);
|
||||
if (percentage) {
|
||||
|
||||
content = (
|
||||
<div>
|
||||
<img className='loader-image' src='/static/images/load.gif' />
|
||||
|
||||
Reference in New Issue
Block a user