Merge pull request #2200 from Human-Connection/2187-language-does-not-change-on-edit

2187 language does not change on edit
This commit is contained in:
Robert Schäfer 2019-11-18 17:03:55 +01:00 committed by GitHub
commit ab819e2957
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 3 additions and 0 deletions

View File

@ -1,5 +1,6 @@
<template> <template>
<ds-card <ds-card
:lang="post.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 }"
> >

View File

@ -45,6 +45,7 @@ export const postFragment = lang => gql`
deleted deleted
slug slug
image image
language
author { author {
...user ...user
} }

View File

@ -1,6 +1,7 @@
<template> <template>
<transition name="fade" appear> <transition name="fade" appear>
<ds-card <ds-card
:lang="post.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 }"