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()