Follow @Mogge suggestions

This commit is contained in:
Wolfgang Huß 2021-05-18 22:09:56 +02:00
parent a9a0d1c380
commit 2f72e4eba3
7 changed files with 15 additions and 15 deletions

View File

@ -7,7 +7,7 @@
<base-card>
<template #imageColumn>
<a :href="links.ORGANIZATION" :title="$t('login.moreInfo', metadata)" target="_blank">
<logo type="welcome" />
<logo logoType="welcome" />
</a>
</template>
<h2 class="title">{{ $t('login.login') }}</h2>

View File

@ -5,14 +5,14 @@
class="ds-logo-svg"
:alt="metadata.APPLICATION_NAME + ' ' + logo.alt"
:src="logo.path"
:style="logoWidth"
:style="logoWidthStyle"
/>
<img
v-else
class="ds-logo-svg"
:alt="metadata.APPLICATION_NAME + ' ' + logo.alt"
:src="logo.path"
:style="logoWidth"
:style="logoWidthStyle"
/>
</component>
</template>
@ -31,14 +31,14 @@ export default {
/**
* Logo type
*/
type: {
logoType: {
type: String,
required: true,
},
/**
* Logo type
* Logo width
*/
width: {
logoWidth: {
type: String,
default: null,
},
@ -75,17 +75,17 @@ export default {
},
}
return {
logo: logosObject[this.type],
logo: logosObject[this.logoType],
metadata,
}
},
computed: {
logoWidth() {
logoWidthStyle() {
let width = ''
if (this.width === null) {
if (this.logoWidth === null) {
width = this.logo.widthDefault
} else {
width = this.width
width = this.logoWidth
}
return `width: ${width};`
},

View File

@ -3,7 +3,7 @@
<base-card>
<template #imageColumn>
<a :href="links.ORGANIZATION" :title="$t('login.moreInfo', metadata)" target="_blank">
<logo type="signup" />
<logo logoType="signup" />
</a>
</template>

View File

@ -6,7 +6,7 @@
<ds-flex-item width="5.5%" />
<ds-flex-item style="flex-grow: 1" width="20%">
<a @click="redirectToRoot">
<logo type="header" />
<logo logoType="header" />
</a>
</ds-flex-item>
<ds-flex-item width="20%" style="flex-grow: 0">

View File

@ -6,7 +6,7 @@
<ds-flex class="main-navigation-flex">
<ds-flex-item :width="{ base: '142px' }">
<nuxt-link :to="{ name: 'index' }" v-scroll-to="'.main-navigation'">
<logo type="header" />
<logo logoType="header" />
</nuxt-link>
</ds-flex-item>
<ds-flex-item

View File

@ -3,7 +3,7 @@
<ds-flex>
<ds-flex-item :width="{ base: '100%' }" centered>
<ds-space style="text-align: center" margin-top="large" margin-bottom="xxx-small" centered>
<logo type="logout" />
<logo logoType="logout" />
</ds-space>
<ds-space style="text-align: center" margin-top="small" margin-bottom="xxx-small" centered>
<ds-heading tag="h3" soft>Logging out...</ds-heading>

View File

@ -3,7 +3,7 @@
<base-card>
<template #imageColumn>
<a :href="links.ORGANIZATION" :title="$t('login.moreInfo', metadata)" target="_blank">
<logo type="passwordReset" />
<logo logoType="passwordReset" />
</a>
</template>
<nuxt-child />