(fix) Unable to input a decimal into the stock value regularly [SCI-10117] (#7075)

This commit is contained in:
Gregor Lasnibat 2024-02-12 11:02:51 +01:00 committed by GitHub
parent 49f8274e98
commit 24901016bc
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -41,7 +41,7 @@
id="stock-amount"
:inputClass="`sci-input-container-v2 ${errors.amount ? 'error' : ''}`"
:labelClass="`text-sm font-normal ${errors.amount ? 'text-sn-delete-red' : 'text-sn-grey'}`"
type="number"
:type="Number(stockValue.decimals) === 0 ? 'number' : 'text'"
:value="amount"
:decimals="stockValue.decimals"
:placeholder="i18n.t('repository_stock_values.manage_modal.amount_placeholder_new')"
@ -101,7 +101,7 @@
fieldClass="flex gap-2"
inputClass="sci-input-container-v2 w-40"
labelClass="text-sm font-normal flex items-center"
type="number"
:type="Number(stockValue.decimals) === 0 ? 'number' : 'text'"
:value="lowStockTreshold"
:decimals="stockValue.decimals"
:placeholder="i18n.t('repository_stock_values.manage_modal.amount_placeholder_new')"