diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2022-01-26 15:18:17 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2022-01-26 15:18:17 +0300 |
commit | 613a8bc141f0d9f984b34274f926df06f48e0133 (patch) | |
tree | 43d665a963504a0b9848c43f7b5001f6e9c1adfa /app/assets/javascripts/runner | |
parent | 30b1000678f33e5b8ae5b4dcbeb2ae5162a2cc5d (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'app/assets/javascripts/runner')
-rw-r--r-- | app/assets/javascripts/runner/components/registration/registration_token_reset_dropdown_item.vue | 19 |
1 files changed, 15 insertions, 4 deletions
diff --git a/app/assets/javascripts/runner/components/registration/registration_token_reset_dropdown_item.vue b/app/assets/javascripts/runner/components/registration/registration_token_reset_dropdown_item.vue index 0e259807f98..54c35e483dc 100644 --- a/app/assets/javascripts/runner/components/registration/registration_token_reset_dropdown_item.vue +++ b/app/assets/javascripts/runner/components/registration/registration_token_reset_dropdown_item.vue @@ -11,8 +11,10 @@ import { INSTANCE_TYPE, GROUP_TYPE, PROJECT_TYPE } from '../../constants'; export default { name: 'RunnerRegistrationTokenReset', i18n: { - modalTitle: __('Reset registration token'), + modalAction: s__('Runners|Reset token'), + modalCancel: __('Cancel'), modalCopy: __('Are you sure you want to reset the registration token?'), + modalTitle: __('Reset registration token'), }, components: { GlDropdownItem, @@ -30,7 +32,7 @@ export default { default: null, }, }, - modalID: 'token-reset-modal', + modalId: 'token-reset-modal', props: { type: { type: String, @@ -111,10 +113,19 @@ export default { }; </script> <template> - <gl-dropdown-item v-gl-modal="$options.modalID"> + <gl-dropdown-item v-gl-modal="$options.modalId"> {{ __('Reset registration token') }} <gl-modal - :modal-id="$options.modalID" + size="sm" + :modal-id="$options.modalId" + :action-primary="{ + text: $options.i18n.modalAction, + attributes: [{ variant: 'danger' }], + }" + :action-secondary="{ + text: $options.i18n.modalCancel, + attributes: [{ variant: 'default' }], + }" :title="$options.i18n.modalTitle" @primary="handleModalPrimary" > |