Skip to content

A continuation of HomeBox the inventory and organization system built for the Home User

Merge branch 'main' into parent-location-sync

Matt Kilgoreab808050737b
diff --cc frontend/pages/item/[id]/index/edit.vue
index e26acc37,a4c0b602..5bda88b9
--- a/frontend/pages/item/[id]/index/edit.vue
+++ b/frontend/pages/item/[id]/index/edit.vue
@@@ -545,18 -533,16 +590,18 @@@
<div class="mt-2 flex flex-wrap items-center justify-between gap-4"></div>
</template>
<div class="mb-6 grid gap-4 border-t px-5 pt-2 md:grid-cols-2">
- <LocationSelector v-model="item.location" />
+ <LocationSelector v-model="item.location" @update:model-value="informAboutDesyncingLocationFromParent()" />
- <FormMultiselect v-model="item.labels" label="Labels" :items="labels ?? []" />
+ <FormMultiselect v-model="item.labels" :label="$t('global.labels')" :items="labels ?? []" />
+ <FormToggle v-model="item.syncChildItemsLocations" label="Sync child items' locations" inline @update:model-value="syncChildItemsLocations()" />
<Autocomplete
v-if="preferences.editorAdvancedView"
v-model="parent"
v-model:search="query"
:items="results"
item-text="name"
- label="Parent Item"
+ :label="$t('items.parent_item')"
no-results-text="Type to search..."
+ @update:model-value="maybeSyncWithParentLocation()"
/>
</div>