mirror of
https://github.com/Ocelot-Social-Community/Ocelot-Social.git
synced 2025-12-13 07:46:06 +00:00
Language attribute added to post and postCard
This commit is contained in:
parent
19602d7311
commit
d0c0fd373a
@ -1,5 +1,6 @@
|
|||||||
<template>
|
<template>
|
||||||
<ds-card
|
<ds-card
|
||||||
|
:language="language"
|
||||||
:image="post.image | proxyApiUrl"
|
:image="post.image | proxyApiUrl"
|
||||||
:class="{ 'post-card': true, 'disabled-content': post.disabled, 'post--pinned': isPinned }"
|
:class="{ 'post-card': true, 'disabled-content': post.disabled, 'post--pinned': isPinned }"
|
||||||
>
|
>
|
||||||
@ -117,6 +118,10 @@ export default {
|
|||||||
this.deletePostCallback,
|
this.deletePostCallback,
|
||||||
)
|
)
|
||||||
},
|
},
|
||||||
|
language() {
|
||||||
|
// if older posts have language not set I assume German as language
|
||||||
|
return this.post.language ? this.post.language : 'de'
|
||||||
|
},
|
||||||
isPinned() {
|
isPinned() {
|
||||||
return this.post && this.post.pinnedBy
|
return this.post && this.post.pinnedBy
|
||||||
},
|
},
|
||||||
|
|||||||
@ -1,6 +1,7 @@
|
|||||||
<template>
|
<template>
|
||||||
<transition name="fade" appear>
|
<transition name="fade" appear>
|
||||||
<ds-card
|
<ds-card
|
||||||
|
:language="language"
|
||||||
v-if="post && ready"
|
v-if="post && ready"
|
||||||
:image="post.image | proxyApiUrl"
|
:image="post.image | proxyApiUrl"
|
||||||
:class="{ 'post-card': true, 'disabled-content': post.disabled }"
|
:class="{ 'post-card': true, 'disabled-content': post.disabled }"
|
||||||
@ -147,6 +148,10 @@ export default {
|
|||||||
this.deletePostCallback,
|
this.deletePostCallback,
|
||||||
)
|
)
|
||||||
},
|
},
|
||||||
|
language() {
|
||||||
|
// if older posts have language not set I assume German as language
|
||||||
|
return this.post.language ? this.post.language : 'de'
|
||||||
|
},
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
isAuthor(id) {
|
isAuthor(id) {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user