Refactor to pass imageProps as an object without the computed section

This commit is contained in:
aonomike 2019-05-09 21:04:07 +03:00
parent bf57198815
commit 6445c534b4
2 changed files with 2 additions and 10 deletions

View File

@ -6,7 +6,7 @@
>
<ds-text>
<hc-image
:image-props="imageProps"
:image-props="{ src: `/img/empty/${this.icon}.svg` }"
width="80"
class="hc-empty-icon"
style="margin-bottom: 5px"
@ -56,11 +56,6 @@ export default {
type: [String, Object],
default: 'x-large'
}
},
computed: {
imageProps() {
return { src: `/img/empty/${this.icon}.svg` }
}
}
}
</script>

View File

@ -33,7 +33,7 @@
<hc-image
class="login-image"
alt="Human Connection"
:image-props="imageProps"
:image-props="{ src: '/img/sign-up/humanconnection.svg' }"
/>
</ds-space>
</ds-flex-item>
@ -118,9 +118,6 @@ export default {
computed: {
pending() {
return this.$store.getters['auth/pending']
},
imageProps() {
return { src: '/img/sign-up/humanconnection.svg' }
}
},
asyncData({ store, redirect }) {