@bchr/bchr-front-lib 0.5.2 → 0.5.4

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.
@@ -417,16 +417,7 @@ var buildActionButton = function buildActionButton(props, subActionButton, inner
417
417
  }
418
418
 
419
419
  if (buttonProps.confirmmsg) {
420
- if (_utils.Values.isEmpty(buttonProps.checkField) || _utils.Values.isEmpty(buttonProps.checkData)) {
421
- throw new Error("Please enter the check field and table data before transmitting the check field and table data");
422
- }
423
-
424
- checkField = buttonProps.checkField;
425
- checkData = buttonProps.checkData;
426
420
  confirmMsg = buttonProps.confirmmsg;
427
- delete buttonProps.checkField;
428
- delete buttonProps.checkData;
429
- delete buttonProps.confirmmsg;
430
421
  }
431
422
 
432
423
  if (buttonProps.confirmtype) {
@@ -446,6 +437,12 @@ var buildActionButton = function buildActionButton(props, subActionButton, inner
446
437
  }
447
438
 
448
439
  if (confirmMsg && confirmMsg.trim().length > 0 && typeof buttonProps.onClick === "function") {
440
+ if (_utils.Values.isEmpty(buttonProps.checkField) || _utils.Values.isEmpty(buttonProps.checkData)) {
441
+ throw new Error("Please enter the check field and table data before transmitting the check field and table data");
442
+ }
443
+
444
+ checkField = buttonProps.checkField;
445
+ checkData = buttonProps.checkData;
449
446
  var onClickHandler = buttonProps.onClick;
450
447
  var onCancelHandler = buttonProps.onCancel;
451
448
  var modalOptions = {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bchr/bchr-front-lib",
3
- "version": "0.5.2",
3
+ "version": "0.5.4",
4
4
  "description": "bchr front lib",
5
5
  "main": "lib/index.js",
6
6
  "scripts": {
@@ -342,17 +342,7 @@ const buildActionButton = function(props, subActionButton, innerLine) {
342
342
  }
343
343
 
344
344
  if (buttonProps.confirmmsg) {
345
- if (Values.isEmpty(buttonProps.checkField) || Values.isEmpty(buttonProps.checkData)) {
346
- throw new Error("Please enter the check field and table data before transmitting the check field and table data");
347
- }
348
-
349
- checkField = buttonProps.checkField;
350
- checkData = buttonProps.checkData;
351
345
  confirmMsg = buttonProps.confirmmsg;
352
-
353
- delete buttonProps.checkField;
354
- delete buttonProps.checkData;
355
- delete buttonProps.confirmmsg;
356
346
  }
357
347
 
358
348
  if (buttonProps.confirmtype) {
@@ -373,6 +363,13 @@ const buildActionButton = function(props, subActionButton, innerLine) {
373
363
  }
374
364
 
375
365
  if (confirmMsg && confirmMsg.trim().length > 0 && typeof buttonProps.onClick === "function") {
366
+ if (Values.isEmpty(buttonProps.checkField) || Values.isEmpty(buttonProps.checkData)) {
367
+ throw new Error("Please enter the check field and table data before transmitting the check field and table data");
368
+ }
369
+
370
+ checkField = buttonProps.checkField;
371
+ checkData = buttonProps.checkData;
372
+
376
373
  let onClickHandler = buttonProps.onClick;
377
374
  let onCancelHandler = buttonProps.onCancel;
378
375