Commit c2e83ba1 authored by Andrew Fontaine's avatar Andrew Fontaine

Merge branch 'fix-broken-image' into 'master'

Fix broken image for runner templates

See merge request gitlab-org/gitlab!69080
parents ac30c048 54b92d1d
<script> <script>
import { GlModal, GlSprintf, GlLink } from '@gitlab/ui'; import { GlModal, GlSprintf, GlLink } from '@gitlab/ui';
import awsCloudFormationImageUrl from 'images/aws-cloud-formation.png';
import ExperimentTracking from '~/experimentation/experiment_tracking'; import ExperimentTracking from '~/experimentation/experiment_tracking';
import { getBaseURL, objectToQuery } from '~/lib/utils/url_utility'; import { getBaseURL, objectToQuery } from '~/lib/utils/url_utility';
import { __, s__ } from '~/locale'; import { __, s__ } from '~/locale';
...@@ -22,6 +23,11 @@ export default { ...@@ -22,6 +23,11 @@ export default {
type: String, type: String,
required: true, required: true,
}, },
imgSrc: {
type: String,
required: false,
default: awsCloudFormationImageUrl,
},
}, },
methods: { methods: {
easyButtonUrl(easyButton) { easyButtonUrl(easyButton) {
...@@ -76,7 +82,7 @@ export default { ...@@ -76,7 +82,7 @@ export default {
<img <img
:title="easyButton.stackName" :title="easyButton.stackName"
:alt="easyButton.stackName" :alt="easyButton.stackName"
src="/assets/aws-cloud-formation.png" :src="imgSrc"
width="46" width="46"
height="46" height="46"
class="gl-mt-2 gl-mr-5 gl-mb-6" class="gl-mt-2 gl-mr-5 gl-mb-6"
......
...@@ -21,6 +21,7 @@ describe('RunnerAwsDeploymentsModal', () => { ...@@ -21,6 +21,7 @@ describe('RunnerAwsDeploymentsModal', () => {
wrapper = shallowMount(RunnerAwsDeploymentsModal, { wrapper = shallowMount(RunnerAwsDeploymentsModal, {
propsData: { propsData: {
modalId: 'runner-aws-deployments-modal', modalId: 'runner-aws-deployments-modal',
imgSrc: '/assets/aws-cloud-formation.png',
}, },
}); });
}; };
......
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