From 19c775646544eaab6762fcc0c25db6bbb3880a1f Mon Sep 17 00:00:00 2001 From: Thomas Citharel Date: Mon, 18 Nov 2019 16:06:24 +0100 Subject: [PATCH] Fix #232 and #230 Signed-off-by: Thomas Citharel --- js/src/components/Editor.vue | 1 + js/src/graphql/actor.ts | 2 +- js/src/graphql/event.ts | 2 ++ js/src/views/Account/IdentityPickerWrapper.vue | 9 +++++++-- lib/mobilizon_web/resolvers/event.ex | 6 +++++- lib/mobilizon_web/schema/event.ex | 1 + schema.graphql | 5 +++-- 7 files changed, 20 insertions(+), 6 deletions(-) diff --git a/js/src/components/Editor.vue b/js/src/components/Editor.vue index 85ad16f55..f44469bd8 100644 --- a/js/src/components/Editor.vue +++ b/js/src/components/Editor.vue @@ -387,6 +387,7 @@ export default class EditorComponent extends Vue { placement: 'top-start', inertia: true, duration: [400, 200], + // @ts-ignore for some reason showOnInit: true, arrow: true, arrowType: 'round', diff --git a/js/src/graphql/actor.ts b/js/src/graphql/actor.ts index 68e8c29b4..e26f197b6 100644 --- a/js/src/graphql/actor.ts +++ b/js/src/graphql/actor.ts @@ -70,7 +70,7 @@ query { }`; export const CURRENT_ACTOR_CLIENT = gql` - query { + query currentActor { currentActor @client { id, avatar { diff --git a/js/src/graphql/event.ts b/js/src/graphql/event.ts index b970e7300..72009bd33 100644 --- a/js/src/graphql/event.ts +++ b/js/src/graphql/event.ts @@ -289,6 +289,7 @@ export const EDIT_EVENT = gql` $picture: PictureInput, $onlineAddress: String, $phoneAddress: String, + $organizerActorId: ID, $category: String, $physicalAddress: AddressInput, $options: EventOptionsInput, @@ -307,6 +308,7 @@ export const EDIT_EVENT = gql` picture: $picture, onlineAddress: $onlineAddress, phoneAddress: $phoneAddress, + organizerActorId: $organizerActorId, category: $category, physicalAddress: $physicalAddress options: $options, diff --git a/js/src/views/Account/IdentityPickerWrapper.vue b/js/src/views/Account/IdentityPickerWrapper.vue index 87ad24574..ef98648b7 100644 --- a/js/src/views/Account/IdentityPickerWrapper.vue +++ b/js/src/views/Account/IdentityPickerWrapper.vue @@ -10,7 +10,7 @@