@crystaldesign/diva-archive 25.8.0-beta.29 → 25.8.0-beta.3
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.
- package/build/esm/index.js +8 -22
- package/package.json +3 -3
package/build/esm/index.js
CHANGED
|
@@ -345,8 +345,7 @@ function getAction(_ref2) {
|
|
|
345
345
|
t: t,
|
|
346
346
|
action: action,
|
|
347
347
|
organization: organization,
|
|
348
|
-
jwt: jwt
|
|
349
|
-
setReloadPage: setReloadPage
|
|
348
|
+
jwt: jwt
|
|
350
349
|
});
|
|
351
350
|
case 'email':
|
|
352
351
|
return openEmailAction(sendEmail, t, action, organization, user);
|
|
@@ -356,22 +355,13 @@ function getAction(_ref2) {
|
|
|
356
355
|
}
|
|
357
356
|
function openBasketAction(openComponent) {
|
|
358
357
|
return function (item) {
|
|
359
|
-
var params = {
|
|
360
|
-
module: 'Basket',
|
|
361
|
-
divaNr: item.DivaNrVersion
|
|
362
|
-
};
|
|
363
|
-
if (item.OrderStatus === 'SEND') {
|
|
364
|
-
params = _objectSpread$2(_objectSpread$2({}, params), {}, {
|
|
365
|
-
assignNewDivaNr: 'true'
|
|
366
|
-
});
|
|
367
|
-
} else {
|
|
368
|
-
params = _objectSpread$2(_objectSpread$2({}, params), {}, {
|
|
369
|
-
check: '1'
|
|
370
|
-
});
|
|
371
|
-
}
|
|
372
358
|
openComponent({
|
|
373
359
|
type: 'SELLER',
|
|
374
|
-
parameters:
|
|
360
|
+
parameters: {
|
|
361
|
+
module: 'Basket',
|
|
362
|
+
divaNr: item.DivaNrVersion,
|
|
363
|
+
check: '1'
|
|
364
|
+
}
|
|
375
365
|
});
|
|
376
366
|
};
|
|
377
367
|
}
|
|
@@ -529,8 +519,7 @@ function placeOrderAction(_ref4) {
|
|
|
529
519
|
sendEmail = _ref4.sendEmail,
|
|
530
520
|
openModal = _ref4.openModal,
|
|
531
521
|
t = _ref4.t,
|
|
532
|
-
action = _ref4.action
|
|
533
|
-
setReloadPage = _ref4.setReloadPage;
|
|
522
|
+
action = _ref4.action;
|
|
534
523
|
return /*#__PURE__*/function () {
|
|
535
524
|
var _ref5 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee3(item, id, updateOne) {
|
|
536
525
|
return _regeneratorRuntime.wrap(function _callee3$(_context3) {
|
|
@@ -563,10 +552,7 @@ function placeOrderAction(_ref4) {
|
|
|
563
552
|
}
|
|
564
553
|
openModal({
|
|
565
554
|
accept: true,
|
|
566
|
-
title: t('order.send.success')
|
|
567
|
-
callback: function callback() {
|
|
568
|
-
return setReloadPage(1);
|
|
569
|
-
}
|
|
555
|
+
title: t('order.send.success')
|
|
570
556
|
});
|
|
571
557
|
_context2.next = 4;
|
|
572
558
|
return setOrdered(apiConfig, organization._id, jwt, item.DivaNr, parseInt(item.DocumentVersion));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@crystaldesign/diva-archive",
|
|
3
|
-
"version": "25.8.0-beta.
|
|
3
|
+
"version": "25.8.0-beta.3",
|
|
4
4
|
"license": "COMMERCIAL",
|
|
5
5
|
"devDependencies": {
|
|
6
6
|
"@testing-library/jest-dom": "^6.5.0",
|
|
@@ -15,10 +15,10 @@
|
|
|
15
15
|
"react-dom": "^18.3.1"
|
|
16
16
|
},
|
|
17
17
|
"dependencies": {
|
|
18
|
-
"@crystaldesign/grid": "25.8.0-beta.
|
|
18
|
+
"@crystaldesign/grid": "25.8.0-beta.3",
|
|
19
19
|
"flat": "^5.0.2"
|
|
20
20
|
},
|
|
21
21
|
"module": "build/esm/index.js",
|
|
22
22
|
"types": "./build/types/archive/src/index.d.ts",
|
|
23
|
-
"gitHead": "
|
|
23
|
+
"gitHead": "5f4e87c7ba35c27ebba26cc057cd39631f5df443"
|
|
24
24
|
}
|