Commit e4a37158 authored by Filipa Lacerda's avatar Filipa Lacerda

Merge branch '9788-add-generic-metrics-report-type-to-merge-requests-backport' into 'master'

Backporting EE changes to CE

See merge request gitlab-org/gitlab-ce!26871
parents 0912fd8a 387ec6cd
......@@ -13,6 +13,11 @@ export default {
type: String,
required: true,
},
statusIconSize: {
type: Number,
required: false,
default: 32,
},
},
computed: {
iconName() {
......@@ -45,6 +50,6 @@ export default {
}"
class="report-block-list-icon"
>
<icon :name="iconName" :size="32" />
<icon :name="iconName" :size="statusIconSize" />
</div>
</template>
......@@ -24,6 +24,11 @@ export default {
type: String,
required: true,
},
statusIconSize: {
type: Number,
required: false,
default: 32,
},
isNew: {
type: Boolean,
required: false,
......@@ -34,7 +39,7 @@ export default {
</script>
<template>
<li :class="{ 'is-dismissed': issue.isDismissed }" class="report-block-list-issue">
<issue-status-icon :status="status" class="append-right-5" />
<issue-status-icon :status="status" :status-icon-size="statusIconSize" class="append-right-5" />
<component :is="component" v-if="component" :issue="issue" :status="status" :is-new="isNew" />
</li>
......
......@@ -33,7 +33,7 @@ export default {
</script>
<template>
<div class="space-children d-flex append-right-10 widget-status-icon">
<div v-if="isLoading" class="mr-widget-icon"><gl-loading-icon /></div>
<div v-if="isLoading" class="mr-widget-icon"><gl-loading-icon size="md" /></div>
<ci-icon v-else :status="statusObj" :size="24" />
......
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