Add global search

Signed-off-by: Thomas Citharel <tcit@tcit.fr>
This commit is contained in:
Thomas Citharel
2022-08-26 16:08:58 +02:00
parent bfc936f57c
commit 48935e2168
216 changed files with 3646 additions and 2806 deletions

View File

@@ -12,9 +12,9 @@
>
<div class="flex gap-1 p-4">
<div class="">
<figure class="" v-if="selectedActor.avatar">
<figure class="h-12 w-12" v-if="selectedActor.avatar">
<img
class="rounded"
class="rounded-full h-full w-full object-cover"
:src="selectedActor.avatar.url"
:alt="selectedActor.avatar.alt ?? ''"
height="48"
@@ -207,7 +207,7 @@ const props = withDefaults(
{ inline: true, contacts: () => [] }
);
const emit = defineEmits(["update:modelValue", "update:Contacts"]);
const emit = defineEmits(["update:modelValue", "update:contacts"]);
const selectedActor = computed({
get(): IActor | undefined {
@@ -252,7 +252,7 @@ const actualContacts = computed({
},
set(contactsIds: (string | undefined)[]) {
emit(
"update:Contacts",
"update:contacts",
actorMembers.value.filter(({ id }) => contactsIds.includes(id))
);
},