forked from M-Labs/web2019
fix(issue#16): Shows warning only when needed
This commit is contained in:
parent
2adb262fb0
commit
41a19b9910
|
@ -680,7 +680,7 @@ class ProductCartItem extends React.PureComponent {
|
|||
<img className="alert-warning" src={warning ? `/images${warning.icon}` : null} />
|
||||
)}
|
||||
|
||||
{warning && (
|
||||
{warning && model.showWarning && (
|
||||
<div className={`k-popup-warning ${shouldTooltipWarningClassInverted ? 'inverted': ''}`}>
|
||||
<p className="rule warning">
|
||||
<i>{warning.message}</i>
|
||||
|
|
Loading…
Reference in New Issue