@crystaldesign/diva-archive 25.8.0-beta.6 → 25.8.0-beta.7
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 +22 -8
- package/package.json +3 -3
package/build/esm/index.js
CHANGED
|
@@ -345,7 +345,8 @@ function getAction(_ref2) {
|
|
|
345
345
|
t: t,
|
|
346
346
|
action: action,
|
|
347
347
|
organization: organization,
|
|
348
|
-
jwt: jwt
|
|
348
|
+
jwt: jwt,
|
|
349
|
+
setReloadPage: setReloadPage
|
|
349
350
|
});
|
|
350
351
|
case 'email':
|
|
351
352
|
return openEmailAction(sendEmail, t, action, organization, user);
|
|
@@ -355,13 +356,22 @@ function getAction(_ref2) {
|
|
|
355
356
|
}
|
|
356
357
|
function openBasketAction(openComponent) {
|
|
357
358
|
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
|
+
}
|
|
358
372
|
openComponent({
|
|
359
373
|
type: 'SELLER',
|
|
360
|
-
parameters:
|
|
361
|
-
module: 'Basket',
|
|
362
|
-
divaNr: item.DivaNrVersion,
|
|
363
|
-
check: '1'
|
|
364
|
-
}
|
|
374
|
+
parameters: params
|
|
365
375
|
});
|
|
366
376
|
};
|
|
367
377
|
}
|
|
@@ -519,7 +529,8 @@ function placeOrderAction(_ref4) {
|
|
|
519
529
|
sendEmail = _ref4.sendEmail,
|
|
520
530
|
openModal = _ref4.openModal,
|
|
521
531
|
t = _ref4.t,
|
|
522
|
-
action = _ref4.action
|
|
532
|
+
action = _ref4.action,
|
|
533
|
+
setReloadPage = _ref4.setReloadPage;
|
|
523
534
|
return /*#__PURE__*/function () {
|
|
524
535
|
var _ref5 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee3(item, id, updateOne) {
|
|
525
536
|
return _regeneratorRuntime.wrap(function _callee3$(_context3) {
|
|
@@ -552,7 +563,10 @@ function placeOrderAction(_ref4) {
|
|
|
552
563
|
}
|
|
553
564
|
openModal({
|
|
554
565
|
accept: true,
|
|
555
|
-
title: t('order.send.success')
|
|
566
|
+
title: t('order.send.success'),
|
|
567
|
+
callback: function callback() {
|
|
568
|
+
return setReloadPage(1);
|
|
569
|
+
}
|
|
556
570
|
});
|
|
557
571
|
_context2.next = 4;
|
|
558
572
|
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.7",
|
|
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.7",
|
|
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": "d160f39c475acc47e32f9641b14a25de2c27cfd4"
|
|
24
24
|
}
|