From 1cd511f440c1c924af6138a3268440263ba740d6 Mon Sep 17 00:00:00 2001 From: Thomas Citharel Date: Tue, 23 Jul 2019 17:14:03 +0200 Subject: [PATCH] Front end deps upgrades and fixes Signed-off-by: Thomas Citharel --- js/src/graphql/event.ts | 10 +- js/src/views/Event/Create.vue | 52 +- js/yarn.lock | 882 ++++++++++++++++++---------------- lib/mobilizon_web/upload.ex | 4 +- 4 files changed, 516 insertions(+), 432 deletions(-) diff --git a/js/src/graphql/event.ts b/js/src/graphql/event.ts index e487d5e97..563419a0b 100644 --- a/js/src/graphql/event.ts +++ b/js/src/graphql/event.ts @@ -143,8 +143,7 @@ export const CREATE_EVENT = gql` $organizerActorId: ID!, $category: String!, $beginsOn: DateTime!, - $picture_file: Upload, - $picture_name: String, + $picture: PictureInput! ) { createEvent( title: $title, @@ -152,12 +151,7 @@ export const CREATE_EVENT = gql` beginsOn: $beginsOn, organizerActorId: $organizerActorId, category: $category, - picture: { - picture: { - file: $picture_file, - name: $picture_name, - } - } + picture: $picture ) { id, uuid, diff --git a/js/src/views/Event/Create.vue b/js/src/views/Event/Create.vue index bdbb1b302..c79991b0d 100644 --- a/js/src/views/Event/Create.vue +++ b/js/src/views/Event/Create.vue @@ -28,7 +28,7 @@ - +