feat(F-134): completed feature
This commit is contained in:
@@ -310,7 +310,7 @@ export function PriceStockSection({ productId }: { productId?: string }) {
|
||||
onChange={(e) => setStock(e.target.value)}
|
||||
onBlur={saveStock}
|
||||
onKeyDown={(e) => { if (e.key === 'Enter') saveStock(); }}
|
||||
disabled={savingStock || pending}
|
||||
disabled={savingStock}
|
||||
className="w-full px-3 py-2 border border-gray-300 rounded-xl text-sm focus:ring-2 focus:ring-[#2D6A4F] outline-none bg-white disabled:opacity-50"
|
||||
/>
|
||||
{stockMsg && <span className={`text-xs shrink-0 ${stockMsg.startsWith('✓') ? 'text-green-600' : 'text-red-600'}`}>{stockMsg}</span>}
|
||||
@@ -324,7 +324,7 @@ export function PriceStockSection({ productId }: { productId?: string }) {
|
||||
onChange={(e) => setEan(e.target.value)}
|
||||
onBlur={saveEan}
|
||||
onKeyDown={(e) => { if (e.key === 'Enter') saveEan(); }}
|
||||
disabled={savingEan || pending}
|
||||
disabled={savingEan}
|
||||
placeholder="8412345678901"
|
||||
className="w-full px-3 py-2 border border-gray-300 rounded-xl text-sm font-mono focus:ring-2 focus:ring-[#2D6A4F] outline-none bg-white disabled:opacity-50"
|
||||
/>
|
||||
@@ -369,7 +369,7 @@ export function PriceStockSection({ productId }: { productId?: string }) {
|
||||
}}
|
||||
onBlur={saveProductMeta}
|
||||
onKeyDown={(e) => { if (e.key === 'Enter') saveProductMeta(); }}
|
||||
disabled={savingProductMeta || pending}
|
||||
disabled={savingProductMeta}
|
||||
placeholder="Gramos"
|
||||
className="w-full px-3 py-2 border border-gray-300 rounded-xl text-sm focus:ring-2 focus:ring-[#2D6A4F] outline-none bg-white disabled:opacity-50"
|
||||
/>
|
||||
@@ -387,7 +387,7 @@ export function PriceStockSection({ productId }: { productId?: string }) {
|
||||
onChange={(e) => setMinPurchaseQty(e.target.value)}
|
||||
onBlur={saveProductMeta}
|
||||
onKeyDown={(e) => { if (e.key === 'Enter') saveProductMeta(); }}
|
||||
disabled={savingProductMeta || pending}
|
||||
disabled={savingProductMeta}
|
||||
className="w-full px-3 py-2 border border-gray-300 rounded-xl text-sm focus:ring-2 focus:ring-[#2D6A4F] outline-none bg-white disabled:opacity-50"
|
||||
/>
|
||||
{metaMsg && <span className={`text-xs shrink-0 ${metaMsg.startsWith('✓') ? 'text-green-600' : 'text-red-600'}`}>{metaMsg}</span>}
|
||||
|
||||
Reference in New Issue
Block a user