From eff6b56c9f8bade579529b95abf3e99fbc2a002d Mon Sep 17 00:00:00 2001 From: Hayden <64056131+hay-kot@users.noreply.github.com> Date: Mon, 31 Oct 2022 21:40:54 -0800 Subject: [PATCH] add archived field --- frontend/pages/item/[id]/edit.vue | 22 +++++----------------- 1 file changed, 5 insertions(+), 17 deletions(-) diff --git a/frontend/pages/item/[id]/edit.vue b/frontend/pages/item/[id]/edit.vue index 7498839..ede78b8 100644 --- a/frontend/pages/item/[id]/edit.vue +++ b/frontend/pages/item/[id]/edit.vue @@ -115,6 +115,11 @@ label: "Insured", ref: "insured", }, + { + type: "checkbox", + label: "Archived", + ref: "archived", + }, ]; const purchaseFields: FormField[] = [ @@ -313,18 +318,6 @@ }); } - async function archiveItem() { - const { isCanceled } = await confirm.open("Are you sure you want to archive this item?"); - - if (isCanceled) { - return; - } - - console.log("archiving"); - - // TODO: Set item.archived = true - } - const { query, results } = useItemSearch(api, { immediate: false }); const parent = ref(); @@ -427,11 +420,6 @@ -