From f0afbd8501338bae9fbaf0f2eb52b726cc29c79b Mon Sep 17 00:00:00 2001 From: Naomi Calabretta Date: Sun, 28 Jul 2024 23:45:59 +0200 Subject: [PATCH] plumbing: tags into members --- src/components/MemberInList.vue | 12 +++-- src/modals/MemberEdit.vue | 55 +++++++++++++++++--- src/modals/TagEdit.vue | 14 ++--- src/modals/TagListSelect.vue | 91 +++++++++++++++++++++++++++++++++ src/views/tabbed/Members.vue | 11 +++- 5 files changed, 165 insertions(+), 18 deletions(-) create mode 100644 src/modals/TagListSelect.vue diff --git a/src/components/MemberInList.vue b/src/components/MemberInList.vue index 0bea4b6..aba608f 100644 --- a/src/components/MemberInList.vue +++ b/src/components/MemberInList.vue @@ -5,13 +5,15 @@ IonAvatar, IonLabel, IonItemOptions, - IonItemOption + IonItemOption, + IonChip } from "@ionic/vue"; import { Member, getTable } from '../lib/db/entities/members'; import { getBlobURL } from '../lib/util/blob'; import MemberEdit from "../modals/MemberEdit.vue"; - import { provide, ref } from "vue"; + import { inject, provide, ref } from "vue"; + import { Tag } from "../lib/db/entities/tags"; const props = defineProps<{ member: Member, @@ -26,6 +28,8 @@ async function removeFromDatabase() { await getTable().delete(member.uuid); } + + const tags = inject("tags");