From 267556b39dc7f067f03107b29d1ec365dcbaaedd Mon Sep 17 00:00:00 2001 From: Peter Papp Date: Sat, 30 Jan 2021 14:01:36 +0100 Subject: [PATCH] - Prevent submit shared form - Send shared link from FileInfoPanel.vue --- app/Http/Resources/ShareResource.php | 1 - resources/js/components/FilesView/FileInfoPanel.vue | 2 +- resources/js/components/Others/Forms/CopyInput.vue | 10 +++++++--- .../js/components/Others/Forms/MultiEmailInput.vue | 1 + resources/js/components/Others/ShareCreate.vue | 6 +----- resources/js/components/Others/ShareEdit.vue | 9 ++++----- 6 files changed, 14 insertions(+), 15 deletions(-) diff --git a/app/Http/Resources/ShareResource.php b/app/Http/Resources/ShareResource.php index a089a92a..3f37d5ae 100644 --- a/app/Http/Resources/ShareResource.php +++ b/app/Http/Resources/ShareResource.php @@ -21,7 +21,6 @@ class ShareResource extends JsonResource 'attributes' => [ 'permission' => $this->permission, 'protected' => (int) $this->protected, - 'email_share'=> $request->has('emails') ? true : false, 'item_id' => (int) $this->item_id, 'expire_in' => (int) $this->expire_in, 'token' => $this->token, diff --git a/resources/js/components/FilesView/FileInfoPanel.vue b/resources/js/components/FilesView/FileInfoPanel.vue index 4de0ba74..680179aa 100644 --- a/resources/js/components/FilesView/FileInfoPanel.vue +++ b/resources/js/components/FilesView/FileInfoPanel.vue @@ -53,7 +53,7 @@ diff --git a/resources/js/components/Others/Forms/CopyInput.vue b/resources/js/components/Others/Forms/CopyInput.vue index 6c3b1912..db069a4c 100644 --- a/resources/js/components/Others/Forms/CopyInput.vue +++ b/resources/js/components/Others/Forms/CopyInput.vue @@ -1,6 +1,6 @@