mirror of
https://github.com/sysadminsmedia/homebox.git
synced 2025-12-23 22:18:22 +01:00
* fix: add empty state to locations list * fix: add empty states for homepage lists * fix: add empty state to notifiers list * fix: update profile notifiers to use translation, add en and pt-pt copy * chore: tweak copy for notifier empty state * fix: add new empty state for search page * fix: update new empty states to use translation strings * chore: eslint fixes, translation * fix: translation key --------- Co-authored-by: Matt Kilgore <matthew@kilgore.dev>
22 lines
483 B
Vue
22 lines
483 B
Vue
<script setup lang="ts">
|
|
import type { TreeItem } from "~~/lib/api/types/data-contracts";
|
|
|
|
type Props = {
|
|
locs: TreeItem[];
|
|
treeId: string;
|
|
};
|
|
|
|
defineProps<Props>();
|
|
</script>
|
|
|
|
<template>
|
|
<div class="root border-2 p-4">
|
|
<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>
|
|
|
|
<style></style>
|