From 5c98f0ca74766d46a9e9d7a9f1ea9a301497e8a9 Mon Sep 17 00:00:00 2001 From: Regis Freyd Date: Wed, 10 Aug 2022 07:41:37 -0400 Subject: [PATCH] fix: fix avatar not uploaded in tabs --- .../Web/ViewHelpers/ContactShowViewHelper.php | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/domains/Contact/ManageContact/Web/ViewHelpers/ContactShowViewHelper.php b/domains/Contact/ManageContact/Web/ViewHelpers/ContactShowViewHelper.php index 2e3abb5db01..6752d2fb480 100644 --- a/domains/Contact/ManageContact/Web/ViewHelpers/ContactShowViewHelper.php +++ b/domains/Contact/ManageContact/Web/ViewHelpers/ContactShowViewHelper.php @@ -115,6 +115,14 @@ public static function dataForTemplatePage(Contact $contact, User $user, Templat 'vault' => $contact->vault_id, 'contact' => $contact->id, ]), + 'update_avatar' => route('contact.avatar.update', [ + 'vault' => $contact->vault_id, + 'contact' => $contact->id, + ]), + 'destroy_avatar' => route('contact.avatar.destroy', [ + 'vault' => $contact->vault_id, + 'contact' => $contact->id, + ]), 'update_template' => route('contact.blank', [ 'vault' => $contact->vault_id, 'contact' => $contact->id,