diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2019-10-10 15:06:07 +0000 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2019-10-10 15:06:07 +0000 |
commit | d96abbee0b394ac40eb67253214fb9c41a31bd41 (patch) | |
tree | 4887c6f08cc902c79e2a31d21a85ce7909cf88bc /app | |
parent | 69849c280c5525d132ebaddb1200c390a42ecc06 (diff) | |
download | gitlab-ce-d96abbee0b394ac40eb67253214fb9c41a31bd41.tar.gz |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'app')
-rw-r--r-- | app/services/system_note_service.rb | 4 | ||||
-rw-r--r-- | app/services/system_notes/zoom_service.rb | 13 |
2 files changed, 15 insertions, 2 deletions
diff --git a/app/services/system_note_service.rb b/app/services/system_note_service.rb index 0399ce2e533..b3eee01ea7a 100644 --- a/app/services/system_note_service.rb +++ b/app/services/system_note_service.rb @@ -317,11 +317,11 @@ module SystemNoteService end def zoom_link_added(issue, project, author) - create_note(NoteSummary.new(issue, project, author, _('added a Zoom call to this issue'), action: 'pinned_embed')) + ::SystemNotes::ZoomService.new(noteable: issue, project: project, author: author).zoom_link_added end def zoom_link_removed(issue, project, author) - create_note(NoteSummary.new(issue, project, author, _('removed a Zoom call from this issue'), action: 'pinned_embed')) + ::SystemNotes::ZoomService.new(noteable: issue, project: project, author: author).zoom_link_removed end private diff --git a/app/services/system_notes/zoom_service.rb b/app/services/system_notes/zoom_service.rb new file mode 100644 index 00000000000..6cd166d6cb9 --- /dev/null +++ b/app/services/system_notes/zoom_service.rb @@ -0,0 +1,13 @@ +# frozen_string_literal: true + +module SystemNotes + class ZoomService < ::SystemNotes::BaseService + def zoom_link_added + create_note(NoteSummary.new(noteable, project, author, _('added a Zoom call to this issue'), action: 'pinned_embed')) + end + + def zoom_link_removed + create_note(NoteSummary.new(noteable, project, author, _('removed a Zoom call from this issue'), action: 'pinned_embed')) + end + end +end |