Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -106,10 +106,7 @@ class="cursor-pointer text-brandColor"

<!-- Add Source dropdown -->
<div v-if="notAddedWarehouses.length">
<x-admin::dropdown
position="bottom-right"
class="!static"
>
<x-admin::dropdown position="bottom-right">
<x-slot:toggle>
<button
type="button"
Expand Down Expand Up @@ -163,7 +160,7 @@ class="text-left"
<x-slot:header>
{!! view_render_event('admin.products.view.inventory.form_controls.drawer.header.before', ['product' => $product]) !!}

<div class="flex items-center justify-between">
<div class="w-full flex items-center justify-between">
<p class="text-xl font-medium dark:text-white">
@{{ selectedWarehouse.name }}
</p>
Expand Down Expand Up @@ -430,6 +427,14 @@ class="icon-delete cursor-pointer text-2xl"
if (this.warehouse.locations.length) {
this.warehouseLocations = JSON.parse(JSON.stringify(this.warehouse.locations));
}

this.warehouseLocations.push({
id: null,
name: '',
in_stock: 0,
allocated: 0,
on_hand: 0,
})
},

methods: {
Expand Down
Loading