diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2022-11-14 21:11:06 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2022-11-14 21:11:06 +0300 |
commit | 3244feeb4f1980251fd9ff6cc263e34072fbf7c7 (patch) | |
tree | 3b534fea55ea5ccfe61f1e9d65b4460db165b111 /app/assets/javascripts/integrations | |
parent | 2d80ade70258fa78e9ada2e8b3055129a69654f3 (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'app/assets/javascripts/integrations')
-rw-r--r-- | app/assets/javascripts/integrations/edit/components/reset_confirmation_modal.vue | 22 |
1 files changed, 8 insertions, 14 deletions
diff --git a/app/assets/javascripts/integrations/edit/components/reset_confirmation_modal.vue b/app/assets/javascripts/integrations/edit/components/reset_confirmation_modal.vue index 403bad3db11..41cd650f932 100644 --- a/app/assets/javascripts/integrations/edit/components/reset_confirmation_modal.vue +++ b/app/assets/javascripts/integrations/edit/components/reset_confirmation_modal.vue @@ -7,18 +7,12 @@ export default { components: { GlModal, }, - computed: { - primaryProps() { - return { - text: __('Reset'), - attributes: [{ variant: 'danger' }, { category: 'primary' }], - }; - }, - cancelProps() { - return { - text: __('Cancel'), - }; - }, + primaryProps: { + text: __('Reset'), + attributes: [{ variant: 'danger' }, { category: 'primary' }], + }, + cancelProps: { + text: __('Cancel'), }, methods: { onReset() { @@ -33,8 +27,8 @@ export default { modal-id="confirmResetIntegration" size="sm" :title="s__('Integrations|Reset integration?')" - :action-primary="primaryProps" - :action-cancel="cancelProps" + :action-primary="$options.primaryProps" + :action-cancel="$options.cancelProps" @primary="onReset" > <p> |