]> source.dussan.org Git - sonarqube.git/commitdiff
improve projects search on the notifications page
authorStas Vilchik <vilchiks@gmail.com>
Thu, 27 Oct 2016 12:07:31 +0000 (14:07 +0200)
committerStas Vilchik <vilchiks@gmail.com>
Thu, 27 Oct 2016 12:07:31 +0000 (14:07 +0200)
require 2 characters for search, don't preload projects, increase input width

server/sonar-web/src/main/js/apps/account/notifications/ProjectNotifications.js

index 0f51df5f78641a918e43468b65855dbcaab219d7..08c5956cd816e308a22c0144cd1e09c3b1479396 100644 (file)
@@ -72,10 +72,12 @@ export default function ProjectNotifications ({ notifications, channels, onAddPr
           </span>
           <Select.Async
               name="new_project"
-              style={{ width: '150px' }}
+              style={{ width: '300px' }}
               loadOptions={loadOptions}
+              minimumInput={2}
               onChange={handleAddProject}
-              placeholder="Search Project"/>
+              placeholder="Search Project"
+              searchPromptText="Type at least 2 characters to search"/>
         </div>
       </section>
   );