Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuke "Jared" Bennett <lbennett@gitlab.com>2017-02-15 16:49:14 +0300
committerLuke "Jared" Bennett <lbennett@gitlab.com>2017-03-06 00:05:48 +0300
commit2cc6485518c332d1452316e24155e921020886d9 (patch)
tree0117471810b2157b42a36cbbcf47edf893871207 /app/helpers/mattermost_helper.rb
parentb18646040c9b17c69ac66fb687b02450e161808c (diff)
Improved team selection
Review changes
Diffstat (limited to 'app/helpers/mattermost_helper.rb')
-rw-r--r--app/helpers/mattermost_helper.rb6
1 files changed, 2 insertions, 4 deletions
diff --git a/app/helpers/mattermost_helper.rb b/app/helpers/mattermost_helper.rb
index 49ac12db832..27ff4051c8d 100644
--- a/app/helpers/mattermost_helper.rb
+++ b/app/helpers/mattermost_helper.rb
@@ -1,9 +1,7 @@
module MattermostHelper
def mattermost_teams_options(teams)
- teams_options = teams.map do |id, options|
- [options['display_name'] || options['name'], id]
+ teams.map do |team|
+ [team['display_name'] || team['name'], team['id']]
end
-
- teams_options.compact.unshift(['Select team...', '0'])
end
end