diff options
Diffstat (limited to 'server/sonar-web/src/main/js/apps/update-center')
3 files changed, 17 insertions, 13 deletions
diff --git a/server/sonar-web/src/main/js/apps/update-center/plugin.js b/server/sonar-web/src/main/js/apps/update-center/plugin.js index c4b6fac39dd..3bbfe655277 100644 --- a/server/sonar-web/src/main/js/apps/update-center/plugin.js +++ b/server/sonar-web/src/main/js/apps/update-center/plugin.js @@ -33,9 +33,11 @@ export default Backbone.Model.extend({ }, match(query) { - return this._matchAttribute('name', query) || + return ( + this._matchAttribute('name', query) || this._matchAttribute('category', query) || - this._matchAttribute('description', query); + this._matchAttribute('description', query) + ); }, _action(options) { diff --git a/server/sonar-web/src/main/js/apps/update-center/routes.js b/server/sonar-web/src/main/js/apps/update-center/routes.js index 46327c282d3..e4d9cb18015 100644 --- a/server/sonar-web/src/main/js/apps/update-center/routes.js +++ b/server/sonar-web/src/main/js/apps/update-center/routes.js @@ -21,35 +21,40 @@ const routes = [ { getIndexRoute(_, callback) { require.ensure([], require => - callback(null, { component: require('./components/UpdateCenterAppContainer').default })); + callback(null, { component: require('./components/UpdateCenterAppContainer').default }) + ); } }, { path: 'installed', getComponent(_, callback) { require.ensure([], require => - callback(null, require('./components/UpdateCenterAppContainer').default)); + callback(null, require('./components/UpdateCenterAppContainer').default) + ); } }, { path: 'updates', getComponent(_, callback) { require.ensure([], require => - callback(null, require('./components/UpdateCenterAppContainer').default)); + callback(null, require('./components/UpdateCenterAppContainer').default) + ); } }, { path: 'available', getComponent(_, callback) { require.ensure([], require => - callback(null, require('./components/UpdateCenterAppContainer').default)); + callback(null, require('./components/UpdateCenterAppContainer').default) + ); } }, { path: 'system', getComponent(_, callback) { require.ensure([], require => - callback(null, require('./components/UpdateCenterAppContainer').default)); + callback(null, require('./components/UpdateCenterAppContainer').default) + ); } } ]; diff --git a/server/sonar-web/src/main/js/apps/update-center/search-view.js b/server/sonar-web/src/main/js/apps/update-center/search-view.js index eb899c7f58c..a181e17a44c 100644 --- a/server/sonar-web/src/main/js/apps/update-center/search-view.js +++ b/server/sonar-web/src/main/js/apps/update-center/search-view.js @@ -84,12 +84,9 @@ export default Marionette.ItemView.extend({ focusSearch() { const that = this; - setTimeout( - () => { - that.$('#update-center-search-query').focus(); - }, - 0 - ); + setTimeout(() => { + that.$('#update-center-search-query').focus(); + }, 0); }, onFilter(model) { |