Commit 47552665 authored by Heinrich Lee Yu's avatar Heinrich Lee Yu

Merge branch '350566-add-success-alert-after-slack-application-is-installed' into 'master'

Add alert after Slack application is installed

See merge request gitlab-org/gitlab!79233
parents d557b47f 278e401b
......@@ -20,6 +20,7 @@ module Projects
flash[:alert] = result[:message]
end
session[:slack_install_success] = true
redirect_to_service_page
end
......
- if session.delete(:slack_install_success)
= render 'shared/global_alert',
title: s_('SlackIntegration|GitLab for Slack was successfully installed.'),
variant: :success,
is_contained: true do
.gl-alert-body
= s_('SlackIntegration|You can now close this window and go to your Slack workspace.')
......@@ -39,6 +39,7 @@ RSpec.describe Projects::Settings::SlacksController do
expect(response).to have_gitlab_http_status(:found)
expect(response).to redirect_to(redirect_url(project))
expect(flash[:alert]).to be_nil
expect(session[:slack_install_success]).to be(true)
end
it 'calls service and redirects with the alert if there is error' do
......
......@@ -33292,6 +33292,9 @@ msgstr ""
msgid "SlackIntegration|GitLab for Slack"
msgstr ""
msgid "SlackIntegration|GitLab for Slack was successfully installed."
msgstr ""
msgid "SlackIntegration|Project alias"
msgstr ""
......@@ -33307,6 +33310,9 @@ msgstr ""
msgid "SlackIntegration|To set up this integration press \"Add to Slack\""
msgstr ""
msgid "SlackIntegration|You can now close this window and go to your Slack workspace."
msgstr ""
msgid "SlackService|1. %{slash_command_link_start}Add a slash command%{slash_command_link_end} in your Slack team using this information:"
msgstr ""
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment