diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2022-06-14 15:08:53 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2022-06-14 15:08:53 +0300 |
commit | 7a124e225ea58c2a432dd29f82ba682963886383 (patch) | |
tree | 4ad5eefec173bdc56aaacc81e4dfb66a8fb9e254 /app/assets/javascripts/incidents_settings | |
parent | 067b3d04573d1473dbc6c81ef775d70c6636ff3f (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'app/assets/javascripts/incidents_settings')
-rw-r--r-- | app/assets/javascripts/incidents_settings/components/pagerduty_form.vue | 24 |
1 files changed, 20 insertions, 4 deletions
diff --git a/app/assets/javascripts/incidents_settings/components/pagerduty_form.vue b/app/assets/javascripts/incidents_settings/components/pagerduty_form.vue index 866d2ff399e..e8c9aa53a7c 100644 --- a/app/assets/javascripts/incidents_settings/components/pagerduty_form.vue +++ b/app/assets/javascripts/incidents_settings/components/pagerduty_form.vue @@ -11,6 +11,7 @@ import { GlModal, GlModalDirective, } from '@gitlab/ui'; +import { __ } from '~/locale'; import ClipboardButton from '~/vue_shared/components/clipboard_button.vue'; import { I18N_PAGERDUTY_SETTINGS_FORM, CONFIGURE_PAGERDUTY_WEBHOOK_DOCS_LINK } from '../constants'; @@ -42,6 +43,21 @@ export default { }; }, i18n: I18N_PAGERDUTY_SETTINGS_FORM, + modal: { + id: 'resetWebhookModal', + actionPrimary: { + text: I18N_PAGERDUTY_SETTINGS_FORM.webhookUrl.resetWebhookUrl, + attributes: { + variant: 'danger', + }, + }, + actionCancel: { + text: __('Cancel'), + attributes: { + variant: 'default', + }, + }, + }, CONFIGURE_PAGERDUTY_WEBHOOK_DOCS_LINK, computed: { formData() { @@ -152,11 +168,11 @@ export default { {{ $options.i18n.webhookUrl.resetWebhookUrl }} </gl-button> <gl-modal - modal-id="resetWebhookModal" + :modal-id="$options.modal.id" :title="$options.i18n.webhookUrl.resetWebhookUrl" - :ok-title="$options.i18n.webhookUrl.resetWebhookUrl" - ok-variant="danger" - @ok="resetWebhookUrl" + :action-primary="$options.modal.actionPrimary" + :action-cancel="$options.modal.actionCancel" + @primary="resetWebhookUrl" > {{ $options.i18n.webhookUrl.restKeyInfo }} </gl-modal> |