diff --git a/app/controllers/user_my_modules_controller.rb b/app/controllers/user_my_modules_controller.rb index 05fc01a42..8e9e2f33b 100644 --- a/app/controllers/user_my_modules_controller.rb +++ b/app/controllers/user_my_modules_controller.rb @@ -92,11 +92,9 @@ class UserMyModulesController < ApplicationController .joins("LEFT OUTER JOIN user_my_modules ON user_my_modules.user_id = users.id "\ "AND user_my_modules.my_module_id = #{@my_module.id}") .search(false, params[:query]) - .order(:full_name) - .limit(Constants::SEARCH_LIMIT) .select('users.*', 'user_my_modules.id as user_my_module_id') - .select('CASE WHEN user_my_modules.id IS NOT NULL '\ - 'THEN true ELSE false END as designated') + .select('CASE WHEN user_my_modules.id IS NOT NULL THEN true ELSE false END as designated') + .order('designated DESC', :full_name) users = users.map do |user| next if params[:skip_assigned] && user.designated diff --git a/app/javascript/vue/my_modules/list.vue b/app/javascript/vue/my_modules/list.vue index d6554cf86..21f6a9f0f 100644 --- a/app/javascript/vue/my_modules/list.vue +++ b/app/javascript/vue/my_modules/list.vue @@ -153,7 +153,8 @@ export default { field: 'designated', headerName: this.i18n.t('experiments.table.column.assigned_html'), sortable: false, - cellRenderer: DesignatedUsers + cellRenderer: DesignatedUsers, + minWidth: 220 }); columns.push({ field: 'tags', diff --git a/app/javascript/vue/my_modules/renderers/designated_users.vue b/app/javascript/vue/my_modules/renderers/designated_users.vue index eb95ccdb9..319c6bd3b 100644 --- a/app/javascript/vue/my_modules/renderers/designated_users.vue +++ b/app/javascript/vue/my_modules/renderers/designated_users.vue @@ -24,14 +24,18 @@ :placeholder="i18n.t('experiments.table.search')" /> -