Skip to content

Use `GlModal` in `_chat_name.html.haml`

What does this MR do and why?

Update the confirmation button variant to danger and its label to Remove on remove nickname confirmation modal.

Screenshots or screen recordings

Before FF After FF (with updated button variant and label)
Screenshot_2022-02-15_at_7.43.46_PM Screenshot_2022-02-15_at_7.39.25_PM

How to set up and validate locally

  1. Enable the bootstrap_confirmation_modals feature flag: Feature.enable(:bootstrap_confirmation_modals)
  2. Login as admin
  3. Go to any Preferences -> Chat
  4. If there isn't already a chat nickname, add one. Refer steps here. Use the ngrok url instead of localhost in the trigger url so that slack can reach your local instance. Also, you will need to setup a free slack workspace to check this integration. Once setup, run a slash command in slack to create a nickname eg. <trigger-command> help.
  5. Click on Remove button against the chat nickname.
  6. Modal should be shown as per screenshots.

MR acceptance checklist

This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.

Related to #344195 (closed)

Edited by Sharmad Nachnolkar

Merge request reports

Loading