mirror of
https://github.com/hay-kot/homebox.git
synced 2025-08-04 00:30:27 +00:00
stub archive button
This commit is contained in:
parent
c722495fdd
commit
e0ff5707eb
1 changed files with 17 additions and 0 deletions
|
@ -313,6 +313,18 @@
|
|||
});
|
||||
}
|
||||
|
||||
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();
|
||||
</script>
|
||||
|
@ -415,6 +427,11 @@
|
|||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="p-4 flex justify-end">
|
||||
<div class="tooltip" data-tip="Hide item from main view">
|
||||
<BaseButton class="btn-error" size="sm" @click="archiveItem"> Archive Item </BaseButton>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<BaseCard>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue