summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnnabel Dunstone Gray <annabel.dunstone@gmail.com>2018-06-01 14:58:19 -0700
committerAnnabel Dunstone Gray <annabel.dunstone@gmail.com>2018-06-01 14:58:19 -0700
commitadbdd8e309fe124f4c0b6b62fda9541850241bba (patch)
tree0535c223d415989e8bbd3313aa364150fa336f2e
parentaa5e61d510885ac18cb06d96337dd4451334ffc5 (diff)
downloadgitlab-ce-adbdd8e309fe124f4c0b6b62fda9541850241bba.tar.gz
Add modal-size option to modal component
-rw-r--r--app/assets/javascripts/performance_bar/components/detailed_metric.vue1
-rw-r--r--app/assets/javascripts/vue_shared/components/gl_modal.vue6
2 files changed, 7 insertions, 0 deletions
diff --git a/app/assets/javascripts/performance_bar/components/detailed_metric.vue b/app/assets/javascripts/performance_bar/components/detailed_metric.vue
index db8a0055acd..ea6776852d4 100644
--- a/app/assets/javascripts/performance_bar/components/detailed_metric.vue
+++ b/app/assets/javascripts/performance_bar/components/detailed_metric.vue
@@ -56,6 +56,7 @@ export default {
<gl-modal
:id="`modal-peek-${metric}-details`"
:header-title-text="header"
+ modal-size="modal-lg"
class="performance-bar-modal"
>
<table
diff --git a/app/assets/javascripts/vue_shared/components/gl_modal.vue b/app/assets/javascripts/vue_shared/components/gl_modal.vue
index d5d5a7d3798..dd0a3170bf2 100644
--- a/app/assets/javascripts/vue_shared/components/gl_modal.vue
+++ b/app/assets/javascripts/vue_shared/components/gl_modal.vue
@@ -10,6 +10,11 @@ export default {
required: false,
default: null,
},
+ modalSize: {
+ type: String,
+ required: false,
+ default: '',
+ },
headerTitleText: {
type: String,
required: false,
@@ -48,6 +53,7 @@ export default {
>
<div
class="modal-dialog"
+ :class="modalSize"
role="document"
>
<div class="modal-content">