From 9eb57278413d4a4417e574f2bddb5bc0b2807d14 Mon Sep 17 00:00:00 2001
From: Mika Andrianarijaona <mikaoelitiana@users.noreply.github.com>
Date: Thu, 19 Jan 2017 00:00:21 +0300
Subject: PLT-137: Disable upload button when max uploads reached (#5053)

* Change upload button color opacity when max reached

* Display max upload message

* Remove error when deleting preview

* Clear error message in side-bar

when user reaches max upload and error is displayed in side-bar, removing one file won't remove error message

* Scroll in preview after file upload in sidebar
---
 webapp/components/file_preview.jsx | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

(limited to 'webapp/components/file_preview.jsx')

diff --git a/webapp/components/file_preview.jsx b/webapp/components/file_preview.jsx
index 53cec7f7b..624bfaf44 100644
--- a/webapp/components/file_preview.jsx
+++ b/webapp/components/file_preview.jsx
@@ -84,7 +84,10 @@ export default class FilePreview extends React.Component {
         });
 
         return (
-            <div className='file-preview__container'>
+            <div
+                className='file-preview__container'
+                ref='container'
+            >
                 {previews}
             </div>
         );
-- 
cgit v1.2.3-1-g7c22

