mirror of
https://github.com/IT4Change/gradido.git
synced 2025-12-13 07:45:54 +00:00
Merge pull request #1282 from gradido/1247-language-switch-not-alligned
Don't show the language-switch on the /register page.
This commit is contained in:
commit
e5a79982b5
@ -15,6 +15,7 @@ describe('AuthLayoutGdd', () => {
|
|||||||
meta: {
|
meta: {
|
||||||
hideFooter: false,
|
hideFooter: false,
|
||||||
},
|
},
|
||||||
|
path: '/',
|
||||||
},
|
},
|
||||||
$store: {
|
$store: {
|
||||||
state: {},
|
state: {},
|
||||||
@ -47,5 +48,20 @@ describe('AuthLayoutGdd', () => {
|
|||||||
it('has a footer inside the main content', () => {
|
it('has a footer inside the main content', () => {
|
||||||
expect(wrapper.find('div.main-content').find('footer.footer').exists()).toBeTruthy()
|
expect(wrapper.find('div.main-content').find('footer.footer').exists()).toBeTruthy()
|
||||||
})
|
})
|
||||||
|
|
||||||
|
it('has LanguageSwitch', () => {
|
||||||
|
expect(wrapper.findComponent({ name: 'LanguageSwitch' }).exists()).toBeTruthy()
|
||||||
|
})
|
||||||
|
|
||||||
|
describe('check LanguageSwitch on register page', () => {
|
||||||
|
beforeEach(() => {
|
||||||
|
mocks.$route.path = '/register'
|
||||||
|
wrapper = Wrapper()
|
||||||
|
})
|
||||||
|
|
||||||
|
it('has not LanguageSwitch', () => {
|
||||||
|
expect(wrapper.findComponent({ name: 'LanguageSwitch' }).exists()).toBeFalsy()
|
||||||
|
})
|
||||||
|
})
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
|
|||||||
@ -2,7 +2,7 @@
|
|||||||
<div class="wrapper">
|
<div class="wrapper">
|
||||||
<div class="main-content mt-4">
|
<div class="main-content mt-4">
|
||||||
<router-view></router-view>
|
<router-view></router-view>
|
||||||
<language-switch class="text-center mb-5 mt-5" />
|
<language-switch v-if="$route.path !== '/register'" class="text-center mb-5 mt-5" />
|
||||||
<content-footer v-if="!$route.meta.hideFooter"></content-footer>
|
<content-footer v-if="!$route.meta.hideFooter"></content-footer>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user