aboutsummaryrefslogtreecommitdiffstats
path: root/server/sonar-web
diff options
context:
space:
mode:
authorStas Vilchik <vilchiks@gmail.com>2016-10-27 14:07:31 +0200
committerStas Vilchik <vilchiks@gmail.com>2016-10-27 14:07:31 +0200
commitc42b0872aaa59f5df90a78eb60fc683c51f05e2c (patch)
tree61621fb38b16273573a68b023c8d3922396e57ec /server/sonar-web
parent059692599345f5a22b5c9b25c34189cf09a99cb8 (diff)
downloadsonarqube-c42b0872aaa59f5df90a78eb60fc683c51f05e2c.tar.gz
sonarqube-c42b0872aaa59f5df90a78eb60fc683c51f05e2c.zip
improve projects search on the notifications page
require 2 characters for search, don't preload projects, increase input width
Diffstat (limited to 'server/sonar-web')
-rw-r--r--server/sonar-web/src/main/js/apps/account/notifications/ProjectNotifications.js6
1 files changed, 4 insertions, 2 deletions
diff --git a/server/sonar-web/src/main/js/apps/account/notifications/ProjectNotifications.js b/server/sonar-web/src/main/js/apps/account/notifications/ProjectNotifications.js
index 0f51df5f786..08c5956cd81 100644
--- a/server/sonar-web/src/main/js/apps/account/notifications/ProjectNotifications.js
+++ b/server/sonar-web/src/main/js/apps/account/notifications/ProjectNotifications.js
@@ -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>
);