MM-2033 fixes img showing infinity progress
Этот коммит содержится в:
@@ -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("Cache-Control", "max-age=2592000, public")
|
||||||
|
w.Header().Set("Content-Length", strconv.Itoa(len(f)))
|
||||||
w.Write(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
|
// display a progress indicator when the preview for an image is still loading
|
||||||
var percentage = Math.floor(this.state.progress[this.state.imgId]);
|
var percentage = Math.floor(this.state.progress[this.state.imgId]);
|
||||||
if (percentage) {
|
if (percentage) {
|
||||||
|
|
||||||
content = (
|
content = (
|
||||||
<div>
|
<div>
|
||||||
<img className='loader-image' src='/static/images/load.gif' />
|
<img className='loader-image' src='/static/images/load.gif' />
|
||||||
|
|||||||
Ссылка в новой задаче
Block a user