u
This commit is contained in:
@@ -512,13 +512,16 @@ export default class ArticleViewPrice extends Component {
|
||||
onSave={this.handleSave}
|
||||
isDirty={priceDraftDirty}
|
||||
canSave={priceDraftValid}
|
||||
overlay={
|
||||
overlay={({ editing, draft, onChange }) => (
|
||||
<PriceOverlay
|
||||
editing={editing}
|
||||
draft={draft}
|
||||
onChange={onChange}
|
||||
unitOptions={unitOptions}
|
||||
articleUnitSi={articleData.unit?.si}
|
||||
onOpenEditor={this.openUnitEditor}
|
||||
/>
|
||||
}
|
||||
)}
|
||||
display={
|
||||
<PriceDisplay
|
||||
saved={priceValue}
|
||||
@@ -527,8 +530,11 @@ export default class ArticleViewPrice extends Component {
|
||||
displaySymbol={displaySymbol}
|
||||
/>
|
||||
}
|
||||
edit={
|
||||
edit={({ draft, onChange, inputRef }) => (
|
||||
<PriceEdit
|
||||
draft={draft}
|
||||
onChange={onChange}
|
||||
inputRef={inputRef}
|
||||
taxRates={taxRates}
|
||||
unitOptions={unitOptions}
|
||||
displaySymbol={displaySymbol}
|
||||
@@ -540,7 +546,7 @@ export default class ArticleViewPrice extends Component {
|
||||
onUnitUpserted={this.refreshUnits}
|
||||
onUnitDeleted={this.refreshUnits}
|
||||
/>
|
||||
}
|
||||
)}
|
||||
/>
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user