mirror of
https://github.com/sysadminsmedia/homebox.git
synced 2026-01-03 03:27:23 +01:00
21 lines
485 B
Vue
21 lines
485 B
Vue
<script setup lang="ts">
|
|
import type { TreeItem } from "~~/lib/api/types/data-contracts";
|
|
import LocationTreeNode from "./Node.vue";
|
|
|
|
type Props = {
|
|
locs: TreeItem[];
|
|
treeId: string;
|
|
};
|
|
|
|
defineProps<Props>();
|
|
</script>
|
|
|
|
<template>
|
|
<div>
|
|
<p v-if="locs.length === 0" class="text-center text-sm">
|
|
{{ $t("location.tree.no_locations") }}
|
|
</p>
|
|
<LocationTreeNode v-for="item in locs" :key="item.id" :item="item" :tree-id="treeId" />
|
|
</div>
|
|
</template>
|