mirror of
https://github.com/IT4Change/gradido.git
synced 2026-02-06 09:56:05 +00:00
* fix(frontend): post migration fixes * fix(frontend): align with stylelint * fix(frontend): fix tests and dashboard layout --------- Co-authored-by: einhornimmond <dario.rekowski@gmx.de>
71 lines
1.6 KiB
Vue
71 lines
1.6 KiB
Vue
<template>
|
|
<div class="name">
|
|
<div class="gdd-transaction-list-item-name">
|
|
<div v-if="linkedUser && linkedUser.gradidoID">
|
|
<router-link :class="fontColor" :to="pushTo">
|
|
{{ itemText }}
|
|
</router-link>
|
|
</div>
|
|
<span v-else>{{ itemText }}</span>
|
|
</div>
|
|
</div>
|
|
</template>
|
|
<script>
|
|
export default {
|
|
name: 'Name',
|
|
props: {
|
|
linkedUser: {
|
|
type: Object,
|
|
required: false,
|
|
},
|
|
text: {
|
|
type: String,
|
|
required: false,
|
|
},
|
|
fontColor: {
|
|
type: String,
|
|
required: false,
|
|
default: '',
|
|
},
|
|
linkId: {
|
|
type: Number,
|
|
required: false,
|
|
default: null,
|
|
},
|
|
},
|
|
computed: {
|
|
itemText() {
|
|
return this.linkedUser
|
|
? this.linkedUser.alias
|
|
? this.linkedUser.alias +
|
|
(this.linkedUser.communityName ? ' / ' + this.linkedUser.communityName : '')
|
|
: this.linkedUser.firstName +
|
|
' ' +
|
|
this.linkedUser.lastName +
|
|
(this.linkedUser.communityName ? ' / ' + this.linkedUser.communityName : '')
|
|
: this.text
|
|
},
|
|
pushTo() {
|
|
return {
|
|
name: 'Send',
|
|
params: {
|
|
userIdentifier: this.linkedUser.gradidoID,
|
|
communityIdentifier: this.linkedUser.communityUuid,
|
|
},
|
|
}
|
|
},
|
|
},
|
|
methods: {
|
|
async tunnelEmail() {
|
|
if (this.$route.path !== '/send') await this.$router.push({ path: '/send' })
|
|
this.$router.push({
|
|
params: {
|
|
userIdentifier: this.linkedUser.gradidoID,
|
|
communityIdentifier: this.linkedUser.communityUuid,
|
|
},
|
|
})
|
|
},
|
|
},
|
|
}
|
|
</script>
|