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