From 19b2b7a49190e1a927212e1bc20326d3ee3c9534 Mon Sep 17 00:00:00 2001 From: Matt Rider Date: Mon, 29 Jul 2019 08:45:58 +0200 Subject: [PATCH] Reset branch to master, copy changes to ContributionForm in --- .../components/ContributionForm/ContributionForm.vue | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/webapp/components/ContributionForm/ContributionForm.vue b/webapp/components/ContributionForm/ContributionForm.vue index 593ff2dc6..23a1c75de 100644 --- a/webapp/components/ContributionForm/ContributionForm.vue +++ b/webapp/components/ContributionForm/ContributionForm.vue @@ -9,6 +9,9 @@ :src="contribution.image | proxyApiUrl" /> + + + 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()