@configuratorware/configurator-admingui 1.33.1 → 1.33.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -243,7 +243,9 @@ var formFields = [{
|
|
|
243
243
|
disableAdd: function disableAdd(_ref4) {
|
|
244
244
|
var parentSchema = _ref4.parentSchema,
|
|
245
245
|
value = _ref4.value;
|
|
246
|
-
|
|
246
|
+
var colorAmountDependent = parentSchema.colorAmountDependent && parentSchema.colorAmountDependent.value;
|
|
247
|
+
var itemAmountDependent = parentSchema.itemAmountDependent && parentSchema.itemAmountDependent.value;
|
|
248
|
+
return !colorAmountDependent && !itemAmountDependent && value.length > 0;
|
|
247
249
|
},
|
|
248
250
|
addButtonLabel: 'designProductionMethod.prices.addButtonLabel',
|
|
249
251
|
columns: null,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@configuratorware/configurator-admingui",
|
|
3
|
-
"version": "1.33.
|
|
3
|
+
"version": "1.33.2",
|
|
4
4
|
"license": "UNLICENSED",
|
|
5
5
|
"private": false,
|
|
6
6
|
"dependencies": {
|
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
"react-redux-i18n": "^1.9.3",
|
|
30
30
|
"react-router": "^3.2.6",
|
|
31
31
|
"react-sortable-hoc": "^1.11.0",
|
|
32
|
-
"redhotmagma-visualization": "1.33.
|
|
32
|
+
"redhotmagma-visualization": "1.33.2",
|
|
33
33
|
"redux": "^4.1.0",
|
|
34
34
|
"redux-logger": "^3.0.6",
|
|
35
35
|
"redux-persist": "^5.10.0",
|
|
@@ -191,11 +191,9 @@ const formFields = [
|
|
|
191
191
|
className: 'table',
|
|
192
192
|
array: {
|
|
193
193
|
disableAdd: ({ parentSchema, value }) => {
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
value.length > 0
|
|
198
|
-
);
|
|
194
|
+
const colorAmountDependent = parentSchema.colorAmountDependent && parentSchema.colorAmountDependent.value;
|
|
195
|
+
const itemAmountDependent = parentSchema.itemAmountDependent && parentSchema.itemAmountDependent.value;
|
|
196
|
+
return !colorAmountDependent && !itemAmountDependent && value.length > 0;
|
|
199
197
|
},
|
|
200
198
|
addButtonLabel: 'designProductionMethod.prices.addButtonLabel',
|
|
201
199
|
columns: null,
|