mirror of
https://github.com/hay-kot/homebox.git
synced 2025-08-05 09:10:26 +00:00
cleanup unused variables
This commit is contained in:
parent
9ddce9e28d
commit
5fabd0f5f3
1 changed files with 0 additions and 40 deletions
|
@ -1,6 +1,4 @@
|
||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
import type { AnyDetail, Details } from "~~/components/global/DetailsSection/types";
|
|
||||||
|
|
||||||
definePageMeta({
|
definePageMeta({
|
||||||
middleware: ["auth"],
|
middleware: ["auth"],
|
||||||
});
|
});
|
||||||
|
@ -9,8 +7,6 @@
|
||||||
const api = useUserApi();
|
const api = useUserApi();
|
||||||
const toast = useNotifier();
|
const toast = useNotifier();
|
||||||
|
|
||||||
const preferences = useViewPreferences();
|
|
||||||
|
|
||||||
const labelId = computed<string>(() => route.params.id as string);
|
const labelId = computed<string>(() => route.params.id as string);
|
||||||
|
|
||||||
const { data: label } = useAsyncData(labelId.value, async () => {
|
const { data: label } = useAsyncData(labelId.value, async () => {
|
||||||
|
@ -23,42 +19,6 @@
|
||||||
return data;
|
return data;
|
||||||
});
|
});
|
||||||
|
|
||||||
const details = computed<Details>(() => {
|
|
||||||
const details = [
|
|
||||||
{
|
|
||||||
name: "Name",
|
|
||||||
text: label.value?.name,
|
|
||||||
} as AnyDetail,
|
|
||||||
{
|
|
||||||
name: "Description",
|
|
||||||
type: "markdown",
|
|
||||||
text: label.value?.description,
|
|
||||||
} as AnyDetail,
|
|
||||||
];
|
|
||||||
|
|
||||||
if (preferences.value.showDetails) {
|
|
||||||
return [
|
|
||||||
...details,
|
|
||||||
{
|
|
||||||
name: "Created",
|
|
||||||
text: label.value?.createdAt,
|
|
||||||
type: "date",
|
|
||||||
} as AnyDetail,
|
|
||||||
{
|
|
||||||
name: "Updated",
|
|
||||||
text: label.value?.updatedAt,
|
|
||||||
type: "date",
|
|
||||||
} as AnyDetail,
|
|
||||||
{
|
|
||||||
name: "Database ID",
|
|
||||||
text: label.value?.id,
|
|
||||||
} as AnyDetail,
|
|
||||||
];
|
|
||||||
}
|
|
||||||
|
|
||||||
return details;
|
|
||||||
});
|
|
||||||
|
|
||||||
const confirm = useConfirm();
|
const confirm = useConfirm();
|
||||||
|
|
||||||
async function confirmDelete() {
|
async function confirmDelete() {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue