From c544deb3d102d1e96dc513e083dcbf36b4bba9a0 Mon Sep 17 00:00:00 2001 From: Markus Dick <47363631+MarkusDick@users.noreply.github.com> Date: Tue, 14 Sep 2021 00:24:55 +0200 Subject: [PATCH] feat: add next reminder date to stayintouch (#5491) --- app/Http/Controllers/ContactsController.php | 7 +++++-- resources/js/components/people/StayInTouch.vue | 16 +++++++++++++++- resources/lang/en/people.php | 1 + 3 files changed, 21 insertions(+), 3 deletions(-) diff --git a/app/Http/Controllers/ContactsController.php b/app/Http/Controllers/ContactsController.php index f521d54fc64..98c54aa55f8 100644 --- a/app/Http/Controllers/ContactsController.php +++ b/app/Http/Controllers/ContactsController.php @@ -607,7 +607,7 @@ public function vCard(Contact $contact) * * @param Request $request * @param Contact $contact - * @return int|RedirectResponse + * @return array */ public function stayInTouch(Request $request, Contact $contact) { @@ -632,7 +632,10 @@ public function stayInTouch(Request $request, Contact $contact) $contact->setStayInTouchTriggerDate($frequency); - return $frequency; + return [ + 'frequency' => $frequency, + 'trigger_date' => $contact->stay_in_touch_trigger_date, + ]; } /** diff --git a/resources/js/components/people/StayInTouch.vue b/resources/js/components/people/StayInTouch.vue index 8f9ed6db201..a474e7de120 100644 --- a/resources/js/components/people/StayInTouch.vue +++ b/resources/js/components/people/StayInTouch.vue @@ -10,6 +10,10 @@ display: block; color:#f57f6c; } + + .dashed { + border-bottom-style: dashed; + }