mirror of
https://github.com/IT4Change/Ocelot-Social.git
synced 2025-12-13 07:45:56 +00:00
Refactor to pass imageProps as an object without the computed section
This commit is contained in:
parent
bf57198815
commit
6445c534b4
@ -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>
|
||||
|
||||
@ -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 }) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user