fix links and tests

This commit is contained in:
einhorn_b 2023-10-30 17:43:44 +01:00
parent 2662af34d1
commit 35da7b5062
3 changed files with 8 additions and 13 deletions

View File

@ -42,17 +42,17 @@ footer
div(class="footer_p1")= t("emails.footer.contactOurSupport")
a(
class="footer_p2"
href='mailto:' + t("emails.footer.supportEmail"))= t("emails.footer.supportEmail"
)
href='mailto:' + t("emails.footer.supportEmail")
)= t("emails.footer.supportEmail")
img.image(
alt="Gradido Logo"
src="https://gdd.gradido.net/img/brand/green.png"
)
div
a(
class="terms_of_use"
href="https://gradido.net/de/impressum/"
target="_blank"
class="terms_of_use"
href="https://gradido.net/de/impressum/"
target="_blank"
)= t("emails.footer.imprint")
br
a(

View File

@ -105,7 +105,7 @@ describe('ContentFooter', () => {
it('links to the support', () => {
expect(wrapper.findAll('a.nav-link').at(3).attributes('href')).toEqual(
'https://gradido.net/en/contact/',
'mailto:support@supportmail.com',
)
})
@ -137,12 +137,6 @@ describe('ContentFooter', () => {
'https://docs.google.com/document/d/1jZp-DiiMPI9ZPNXmjsvOQ1BtnfDFfx8BX7CDmA8KKjY/edit?usp=sharing',
)
})
it('links to the German support-page when locale is de', () => {
expect(wrapper.findAll('a.nav-link').at(3).attributes('href')).toEqual(
'https://gradido.net/de/contact/',
)
})
})
})
})

View File

@ -44,7 +44,7 @@
>
{{ $t('footer.whitepaper') }}
</b-nav-item>
<b-nav-item :href="`mailto:${CONFIG.SUPPORT_MAIL}`" target="_blank">
<b-nav-item :href="`mailto:${supportEmail}`" target="_blank">
{{ $t('navigation.support') }}
</b-nav-item>
</b-nav>
@ -62,6 +62,7 @@ export default {
version: CONFIG.APP_VERSION,
hash: CONFIG.BUILD_COMMIT,
shortHash: CONFIG.BUILD_COMMIT_SHORT,
supportEmail: CONFIG.COMMUNITY_SUPPORT_MAIL,
}
},
}