Merge pull request 'fix(sale): disabled clear icons' (#801) from 3388-ticket_sale into dev
gitea/salix/pipeline/head This commit looks good
Details
gitea/salix/pipeline/head This commit looks good
Details
Reviewed-on: #801 Reviewed-by: Carlos Jimenez Ruiz <carlosjr@verdnatura.es>
This commit is contained in:
commit
b9265b79d9
|
@ -15,6 +15,7 @@
|
||||||
<div class="icons pre">
|
<div class="icons pre">
|
||||||
<vn-icon
|
<vn-icon
|
||||||
icon="clear"
|
icon="clear"
|
||||||
|
ng-show="::$ctrl.clearDisabled != true"
|
||||||
translate-attr="{title: 'Clear'}"
|
translate-attr="{title: 'Clear'}"
|
||||||
ng-click="$ctrl.onClear($event)">
|
ng-click="$ctrl.onClear($event)">
|
||||||
</vn-icon>
|
</vn-icon>
|
||||||
|
|
|
@ -85,6 +85,7 @@ ngModule.vnComponent('vnInputNumber', {
|
||||||
min: '<?',
|
min: '<?',
|
||||||
max: '<?',
|
max: '<?',
|
||||||
step: '<?',
|
step: '<?',
|
||||||
displayControls: '<?'
|
displayControls: '<?',
|
||||||
|
clearDisabled: '<?'
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
|
@ -153,7 +153,8 @@
|
||||||
<vn-input-number class="dense"
|
<vn-input-number class="dense"
|
||||||
vn-focus
|
vn-focus
|
||||||
ng-model="sale.quantity"
|
ng-model="sale.quantity"
|
||||||
on-change="$ctrl.changeQuantity(sale)">
|
on-change="$ctrl.changeQuantity(sale)"
|
||||||
|
clear-disabled="true">
|
||||||
</vn-input-number>
|
</vn-input-number>
|
||||||
</field>
|
</field>
|
||||||
</vn-td-editable>
|
</vn-td-editable>
|
||||||
|
@ -177,7 +178,8 @@
|
||||||
<vn-textfield class="dense" vn-focus
|
<vn-textfield class="dense" vn-focus
|
||||||
vn-id="concept"
|
vn-id="concept"
|
||||||
ng-model="sale.concept"
|
ng-model="sale.concept"
|
||||||
on-change="$ctrl.updateConcept(sale)">
|
on-change="$ctrl.updateConcept(sale)"
|
||||||
|
clear-disabled="true">
|
||||||
</vn-textfield>
|
</vn-textfield>
|
||||||
</field>
|
</field>
|
||||||
</vn-td-editable>
|
</vn-td-editable>
|
||||||
|
@ -251,6 +253,7 @@
|
||||||
ng-model="$ctrl.edit.price"
|
ng-model="$ctrl.edit.price"
|
||||||
step="0.01"
|
step="0.01"
|
||||||
on-change="$ctrl.updatePrice()"
|
on-change="$ctrl.updatePrice()"
|
||||||
|
clear-disabled="true"
|
||||||
suffix="€">
|
suffix="€">
|
||||||
</vn-input-number>
|
</vn-input-number>
|
||||||
<div class="simulator">
|
<div class="simulator">
|
||||||
|
@ -283,6 +286,7 @@
|
||||||
label="Discount"
|
label="Discount"
|
||||||
ng-model="$ctrl.edit.discount"
|
ng-model="$ctrl.edit.discount"
|
||||||
on-change="$ctrl.changeDiscount()"
|
on-change="$ctrl.changeDiscount()"
|
||||||
|
clear-disabled="true"
|
||||||
suffix="%">
|
suffix="%">
|
||||||
</vn-input-number>
|
</vn-input-number>
|
||||||
<div class="simulator">
|
<div class="simulator">
|
||||||
|
@ -311,6 +315,7 @@
|
||||||
label="Discount"
|
label="Discount"
|
||||||
ng-model="$ctrl.edit.discount"
|
ng-model="$ctrl.edit.discount"
|
||||||
on-change="$ctrl.changeMultipleDiscount()"
|
on-change="$ctrl.changeMultipleDiscount()"
|
||||||
|
clear-disabled="true"
|
||||||
suffix="%">
|
suffix="%">
|
||||||
</vn-input-number>
|
</vn-input-number>
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Reference in New Issue