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

View File

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

View File

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

View File

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