diff options
Diffstat (limited to 'app/assets/javascripts/lib/utils/confirm_via_gl_modal')
-rw-r--r-- | app/assets/javascripts/lib/utils/confirm_via_gl_modal/confirm_action.js | 2 | ||||
-rw-r--r-- | app/assets/javascripts/lib/utils/confirm_via_gl_modal/confirm_modal.vue | 7 |
2 files changed, 8 insertions, 1 deletions
diff --git a/app/assets/javascripts/lib/utils/confirm_via_gl_modal/confirm_action.js b/app/assets/javascripts/lib/utils/confirm_via_gl_modal/confirm_action.js index 3bfbfea7f22..a6081303bf8 100644 --- a/app/assets/javascripts/lib/utils/confirm_via_gl_modal/confirm_action.js +++ b/app/assets/javascripts/lib/utils/confirm_via_gl_modal/confirm_action.js @@ -12,6 +12,7 @@ export function confirmAction( modalHtmlMessage, title, hideCancel, + size, } = {}, ) { return new Promise((resolve) => { @@ -36,6 +37,7 @@ export function confirmAction( title, modalHtmlMessage, hideCancel, + size, }, on: { confirmed() { diff --git a/app/assets/javascripts/lib/utils/confirm_via_gl_modal/confirm_modal.vue b/app/assets/javascripts/lib/utils/confirm_via_gl_modal/confirm_modal.vue index ea91ccec546..24be1485379 100644 --- a/app/assets/javascripts/lib/utils/confirm_via_gl_modal/confirm_modal.vue +++ b/app/assets/javascripts/lib/utils/confirm_via_gl_modal/confirm_modal.vue @@ -56,6 +56,11 @@ export default { required: false, default: false, }, + size: { + type: String, + required: false, + default: 'sm', + }, }, computed: { primaryAction() { @@ -103,9 +108,9 @@ export default { <template> <gl-modal ref="modal" - size="sm" modal-id="confirmationModal" body-class="gl-display-flex" + :size="size" :title="title" :action-primary="primaryAction" :action-cancel="cancelAction" |