Merge pull request #936 from Human-Connection/760_post-author-last-active

Add details to contribution form
This commit is contained in:
Wolfgang Huß 2019-07-29 11:13:49 +02:00 committed by GitHub
commit 86777a0a2d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -9,6 +9,9 @@
:src="contribution.image | proxyApiUrl"
/>
</hc-teaser-image>
<ds-space />
<hc-user :user="currentUser" :trunc="35" />
<ds-space />
<ds-input model="title" class="post-title" placeholder="Title" name="title" autofocus />
<no-ssr>
<hc-editor
@ -65,18 +68,21 @@
<script>
import gql from 'graphql-tag'
import HcEditor from '~/components/Editor/Editor'
import orderBy from 'lodash/orderBy'
import { mapGetters } from 'vuex'
import HcEditor from '~/components/Editor/Editor'
import locales from '~/locales'
import PostMutations from '~/graphql/PostMutations.js'
import HcCategoriesSelect from '~/components/CategoriesSelect/CategoriesSelect'
import HcTeaserImage from '~/components/TeaserImage/TeaserImage'
import HcUser from '~/components/User'
export default {
components: {
HcEditor,
HcCategoriesSelect,
HcTeaserImage,
HcUser,
},
props: {
contribution: { type: Object, default: () => {} },
@ -128,6 +134,9 @@ export default {
: locales.find(loc => this.$i18n.locale() === loc.code)
return locale.name
},
...mapGetters({
currentUser: 'auth/user',
}),
},
mounted() {
this.availableLocales()