Skip to content
Snippets Groups Projects
Verified Commit 19bd9cb7 authored by Martin Claesson's avatar Martin Claesson
Browse files

fix(Inventory): :sparkles: allow setting individual max weight when creating a new inventory

parent caa0ba8a
Branches
Tags
1 merge request!99Custom icons everywhere
......@@ -41,6 +41,19 @@
hide-details :loading="loading" />
</VCol>
</VRow>
<VRow>
<VCol>
<VSwitch v-model="inventory.separateMaxWeight" variant="outlined" dense label="Separate max weight"
color="cyan" hide-details :loading="loading" :disabled="inventory.ignoreWeightInTotal"
:density="'compact'" />
</VCol>
<VCol>
<VTextField v-model="inventory.maxWeight" variant="outlined" label="Max weight" hide-details="auto"
type="number" :rules="[rules.positive, rules.required, rules.positive]" :loading="loading"
:disabled="!inventory.separateMaxWeight || inventory.ignoreWeightInTotal" :density="'compact'"
@update:focused="inventory.maxWeight = zeroIfNan(inventory.maxWeight, true)" />
</VCol>
</VRow>
<VRow>
<VCol>
<VSlider v-model="sellPriceValue" variant="outlined" label="Default sell price" :step="1" :min="0" dark
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment