Merge pull request #626 from Human-Connection/613_revert-empty-component-to-use-img-tag

Refactor to use <img> instead of <hc-image> component for images
This commit is contained in:
Robert Schäfer 2019-05-19 19:25:44 +02:00 committed by GitHub
commit d73ec2288e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -5,8 +5,8 @@
:margin="margin"
>
<ds-text>
<hc-image
:image-props="{ src: imgSrc }"
<img
:src="iconPath"
width="80"
class="hc-empty-icon"
style="margin-bottom: 5px"
@ -24,12 +24,8 @@
</template>
<script>
import HcImage from '~/components/Image'
export default {
name: 'HcEmpty',
components: {
HcImage
},
props: {
/**
* Icon that should be shown
@ -58,7 +54,7 @@ export default {
}
},
computed: {
imgSrc() {
iconPath() {
return `/img/empty/${this.icon}.svg`
}
}