You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

36 lines
912 B

<template>
<v-card>
<v-card-title>{{ $t("claimed_wish_table_header") }}</v-card-title>
<v-list three-line>
<v-list-item v-for='item in this.$store.state.wishes.claimed' v-bind:key='item.id'>
<v-list-item-content>
<v-list-item-title>
{{ $t("claimed_wish_row_wish_by") }} {{ getUser(item.owner_id).name }}
</v-list-item-title>
<v-list-item-subtitle>
{{ item.wish }}
</v-list-item-subtitle>
</v-list-item-content>
</v-list-item>
</v-list>
</v-card>
</template>
<script>
export default {
name: 'claimedwishes',
methods: {
getUser(id) {
let searchedUser = this.$store.state.users.users
.find(user => user.id === id)
console.log(searchedUser)
return searchedUser !== undefined ? searchedUser : {"id": 999, "name": "Lädt..."}
}
}
}
</script>
<style scoped>
</style>