Commit 66bc36aa authored by Katie Macoy's avatar Katie Macoy Committed by Miguel Rincon

Convert registry modals to be small size instead of default

parent 14b2909c
...@@ -82,6 +82,7 @@ export default { ...@@ -82,6 +82,7 @@ export default {
ref="deleteModal" ref="deleteModal"
modal-id="delete-tag-modal" modal-id="delete-tag-modal"
ok-variant="danger" ok-variant="danger"
size="sm"
:action-primary="{ :action-primary="{
text: __('Delete'), text: __('Delete'),
attributes: [{ variant: 'danger' }, { disabled: disablePrimaryButton }], attributes: [{ variant: 'danger' }, { disabled: disablePrimaryButton }],
......
...@@ -388,6 +388,7 @@ export default { ...@@ -388,6 +388,7 @@ export default {
<template #default="{ doDelete }"> <template #default="{ doDelete }">
<gl-modal <gl-modal
ref="deleteModal" ref="deleteModal"
size="sm"
modal-id="delete-image-modal" modal-id="delete-image-modal"
:action-primary="{ text: __('Remove'), attributes: { variant: 'danger' } }" :action-primary="{ text: __('Remove'), attributes: { variant: 'danger' } }"
@primary="doDelete" @primary="doDelete"
......
...@@ -203,6 +203,7 @@ export default { ...@@ -203,6 +203,7 @@ export default {
<gl-modal <gl-modal
ref="deleteModal" ref="deleteModal"
size="sm"
modal-id="delete-modal" modal-id="delete-modal"
:action-primary="$options.modal.packageDeletePrimaryAction" :action-primary="$options.modal.packageDeletePrimaryAction"
:action-cancel="$options.modal.cancelAction" :action-cancel="$options.modal.cancelAction"
...@@ -223,6 +224,7 @@ export default { ...@@ -223,6 +224,7 @@ export default {
<gl-modal <gl-modal
ref="deleteFileModal" ref="deleteFileModal"
size="sm"
modal-id="delete-file-modal" modal-id="delete-file-modal"
:action-primary="$options.modal.fileDeletePrimaryAction" :action-primary="$options.modal.fileDeletePrimaryAction"
:action-cancel="$options.modal.cancelAction" :action-cancel="$options.modal.cancelAction"
......
...@@ -111,6 +111,7 @@ export default { ...@@ -111,6 +111,7 @@ export default {
<gl-modal <gl-modal
ref="packageListDeleteModal" ref="packageListDeleteModal"
size="sm"
modal-id="confirm-delete-pacakge" modal-id="confirm-delete-pacakge"
ok-variant="danger" ok-variant="danger"
@ok="deleteItemConfirmation" @ok="deleteItemConfirmation"
......
...@@ -304,6 +304,7 @@ export default { ...@@ -304,6 +304,7 @@ export default {
<template #default="{ deletePackage }"> <template #default="{ deletePackage }">
<gl-modal <gl-modal
ref="deleteModal" ref="deleteModal"
size="sm"
modal-id="delete-modal" modal-id="delete-modal"
data-testid="delete-modal" data-testid="delete-modal"
:action-primary="$options.modal.packageDeletePrimaryAction" :action-primary="$options.modal.packageDeletePrimaryAction"
...@@ -327,6 +328,7 @@ export default { ...@@ -327,6 +328,7 @@ export default {
<gl-modal <gl-modal
ref="deleteFileModal" ref="deleteFileModal"
size="sm"
modal-id="delete-file-modal" modal-id="delete-file-modal"
:action-primary="$options.modal.fileDeletePrimaryAction" :action-primary="$options.modal.fileDeletePrimaryAction"
:action-cancel="$options.modal.cancelAction" :action-cancel="$options.modal.cancelAction"
......
...@@ -124,6 +124,7 @@ export default { ...@@ -124,6 +124,7 @@ export default {
<gl-modal <gl-modal
v-model="showDeleteModal" v-model="showDeleteModal"
modal-id="confirm-delete-pacakge" modal-id="confirm-delete-pacakge"
size="sm"
ok-variant="danger" ok-variant="danger"
@ok="deleteItemConfirmation" @ok="deleteItemConfirmation"
@cancel="deleteItemCanceled" @cancel="deleteItemCanceled"
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment