feat: add ability to autocomplete tags (#1995)

This commit is contained in:
Régis Freyd
2018-11-09 20:48:12 -05:00
committed by GitHub
parent 1e45dbc8fe
commit 1f65b18a3c
57 changed files with 1358 additions and 1057 deletions
@@ -7,6 +7,7 @@ use App\Jobs\ResizeAvatars;
use App\Models\Contact\Tag;
use App\Helpers\VCardHelper;
use Illuminate\Http\Request;
use App\Helpers\AvatarHelper;
use App\Helpers\SearchHelper;
use App\Models\Contact\Contact;
use Illuminate\Support\Facades\Auth;
@@ -209,6 +210,7 @@ class ContactsController extends Controller
*/
public function show(Contact $contact)
{
// make sure we don't display a significant other if it's not set as a
// real contact
if ($contact->is_partial) {
@@ -267,6 +269,7 @@ class ContactsController extends Controller
->withWorkRelationships($workRelationships)
->withReminders($reminders)
->withModules($modules)
->withAvatar(AvatarHelper::get($contact, 87))
->withContact($contact)
->withDays($days)
->withMonths($months)
@@ -490,6 +493,7 @@ class ContactsController extends Controller
public function editFoodPreferencies(Request $request, Contact $contact)
{
return view('people.food-preferencies.edit')
->withAvatar(AvatarHelper::get($contact, 87))
->withContact($contact);
}