🚑 Hotfixing missing logo in partner page
This commit is contained in:
parent
41a3e62bf3
commit
3cc0e1b981
|
@ -26,21 +26,6 @@
|
|||
</div>
|
||||
</li>
|
||||
</ul>
|
||||
|
||||
<!-- <ul class="communications-list">
|
||||
<li v-for="communicationPartner in $t('partner.communication')" :key="communicationPartner.name">
|
||||
<h2>
|
||||
<a
|
||||
:href="communicationPartner.url"
|
||||
target="_blank"
|
||||
rel="noopener"
|
||||
>
|
||||
{{ communicationPartner.name }}
|
||||
</a>
|
||||
</h2>
|
||||
<p>{{ communicationPartner.description }}</p>
|
||||
</li>
|
||||
</ul> -->
|
||||
</section>
|
||||
</template>
|
||||
|
||||
|
@ -50,7 +35,12 @@
|
|||
|
||||
methods: {
|
||||
getPartnerLogo (token) {
|
||||
const name = token.toLowerCase().replace(/\s/g, '-')
|
||||
let name = token.toLowerCase().replace(/\s/g, '-')
|
||||
// Hotfix, should be handled correctly.
|
||||
if (name.includes('czech-republic')) {
|
||||
name = name.split('-')[0]
|
||||
}
|
||||
|
||||
return require(`@/assets/${name}-logo.png`)
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue