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:
authorRobert Speicher <robert@gitlab.com>2016-09-20 16:40:49 +0300
committerRobert Speicher <robert@gitlab.com>2016-09-20 16:40:49 +0300
commit31ff272f763a93b944cd288cc35c54e5c2645ebd (patch)
treec75989669266a958e13e407a1fce2d34afd894b6 /app/helpers
parent9eed4a8dc2c9a99368ee778946af39578866b066 (diff)
parentf6e5cc3c37f83044ca06d82aacf8ccb2796df724 (diff)
Merge branch '22218-fix-note-form-footer' into 'master'
Fix note form hint showing slash commands supported for commits ## What are the relevant issue numbers? Closes #22218 See merge request !6368
Diffstat (limited to 'app/helpers')
-rw-r--r--app/helpers/notes_helper.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/app/helpers/notes_helper.rb b/app/helpers/notes_helper.rb
index da230f76bae..b0331f36a2f 100644
--- a/app/helpers/notes_helper.rb
+++ b/app/helpers/notes_helper.rb
@@ -10,6 +10,10 @@ module NotesHelper
Ability.can_edit_note?(current_user, note)
end
+ def note_supports_slash_commands?(note)
+ Notes::SlashCommandsService.supported?(note, current_user)
+ end
+
def noteable_json(noteable)
{
id: noteable.id,