Class: Gitlab::SlashCommands::Presenters::IssueMove

Inherits:
Base
  • Object
show all
Includes:
IssueBase
Defined in:
lib/gitlab/slash_commands/presenters/issue_move.rb

Instance Method Summary collapse

Methods included from IssueBase

#author, #color, #fields, #project, #status_text

Methods inherited from Base

#display_errors, #initialize

Methods included from Routing

add_helpers, includes_helpers, redirect_legacy_paths, url_helpers

Constructor Details

This class inherits a constructor from Gitlab::SlashCommands::Presenters::Base

Instance Method Details

#display_move_error(error) ⇒ Object


13
14
15
16
17
# File 'lib/gitlab/slash_commands/presenters/issue_move.rb', line 13

def display_move_error(error)
  message = header_with_list("The action was not successful, because:", [error])

  ephemeral_response(text: message)
end

#present(old_issue) ⇒ Object


9
10
11
# File 'lib/gitlab/slash_commands/presenters/issue_move.rb', line 9

def present(old_issue)
  in_channel_response(moved_issue(old_issue))
end