Couple of corrections

@aonomike use computed properties when possible
This commit is contained in:
Robert Schäfer 2019-05-10 13:58:24 +02:00
parent 958ebf2c77
commit 6c5f529d85
5 changed files with 9 additions and 4 deletions

View File

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

View File

@ -1,5 +1,5 @@
import { shallowMount, createLocalVue } from '@vue/test-utils'
import RelativeDateTime from './index'
import RelativeDateTime from './'
const localVue = createLocalVue()

View File

@ -1,6 +1,6 @@
import { shallowMount, createLocalVue } from '@vue/test-utils'
import Styleguide from '@human-connection/styleguide'
import Tag from './index'
import Tag from './'
const localVue = createLocalVue()
localVue.use(Styleguide)

View File

@ -34,7 +34,7 @@
class="login-image"
alt="Human Connection"
src="/img/sign-up/humanconnection.svg"
/>
>
</ds-space>
</ds-flex-item>
<ds-flex-item