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:
Diffstat (limited to 'app/views/shared/form_elements/_apply_generated_description_warning.haml')
-rw-r--r--app/views/shared/form_elements/_apply_generated_description_warning.haml13
1 files changed, 13 insertions, 0 deletions
diff --git a/app/views/shared/form_elements/_apply_generated_description_warning.haml b/app/views/shared/form_elements/_apply_generated_description_warning.haml
new file mode 100644
index 00000000000..906f60d01e6
--- /dev/null
+++ b/app/views/shared/form_elements/_apply_generated_description_warning.haml
@@ -0,0 +1,13 @@
+.form-group.row.js-ai-description-warning.hidden.js-issuable-ai-description-warning
+ .col-sm-12
+ .warning_message.mb-0{ role: 'alert' }
+ %btn.js-close-btn.js-dismiss-btn.close{ type: "button", "aria-hidden": "true", "aria-label": _("Close") }
+ = sprite_icon("close")
+
+ %p
+ = s_("AI|Replace the existing description with an AI-generated description? Any changes you have made will be lost.")
+
+ = render Pajamas::ButtonComponent.new(variant: :confirm, button_options: { class: 'gl-mr-3 js-ai-override-description' }) do
+ = s_("AI|Apply AI-generated description")
+ = render Pajamas::ButtonComponent.new(button_options: { class: 'js-cancel-btn' }) do
+ = _("Cancel")