@vendure/dashboard 3.6.2 → 3.6.3-master-202604150307
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/dist/vite/constants.js +1 -0
- package/lingui.config.js +2 -1
- package/package.json +3 -3
- package/src/app/routes/_authenticated/_orders/components/order-modification-preview-dialog.tsx +14 -9
- package/src/i18n/locales/ro.po +5603 -0
- package/src/lib/framework/dashboard-widget/metrics-widget/chart.tsx +14 -2
package/dist/vite/constants.js
CHANGED
package/lingui.config.js
CHANGED
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vendure/dashboard",
|
|
3
3
|
"private": false,
|
|
4
|
-
"version": "3.6.
|
|
4
|
+
"version": "3.6.3-master-202604150307",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"repository": {
|
|
7
7
|
"type": "git",
|
|
@@ -137,8 +137,8 @@
|
|
|
137
137
|
"@storybook/addon-vitest": "^10.3.1",
|
|
138
138
|
"@storybook/react-vite": "^10.3.1",
|
|
139
139
|
"@types/node": "^22.19.0",
|
|
140
|
-
"@vendure/common": "3.6.
|
|
141
|
-
"@vendure/core": "3.6.
|
|
140
|
+
"@vendure/common": "^3.6.3-master-202604150307",
|
|
141
|
+
"@vendure/core": "^3.6.3-master-202604150307",
|
|
142
142
|
"@vitest/browser": "^3.2.4",
|
|
143
143
|
"@vitest/coverage-v8": "^3.2.4",
|
|
144
144
|
"eslint": "^9.39.0",
|
package/src/app/routes/_authenticated/_orders/components/order-modification-preview-dialog.tsx
CHANGED
|
@@ -58,7 +58,9 @@ export function OrderModificationPreviewDialog({
|
|
|
58
58
|
// Use a ref to track the last input sent to avoid duplicate calls
|
|
59
59
|
const lastInputRef = useRef<ModifyOrderInput | null>(null);
|
|
60
60
|
const previewMutation = useMutation({
|
|
61
|
-
mutationFn: api.mutate(
|
|
61
|
+
mutationFn: api.mutate(
|
|
62
|
+
addCustomFields(modifyOrderDocument, { includeNestedFragments: ['OrderLine', 'Fulfillment'] }),
|
|
63
|
+
),
|
|
62
64
|
});
|
|
63
65
|
|
|
64
66
|
// Create form with dynamic fields for each payment
|
|
@@ -77,7 +79,12 @@ export function OrderModificationPreviewDialog({
|
|
|
77
79
|
});
|
|
78
80
|
|
|
79
81
|
const confirmMutation = useMutation({
|
|
80
|
-
mutationFn: (input: ModifyOrderInput) =>
|
|
82
|
+
mutationFn: (input: ModifyOrderInput) =>
|
|
83
|
+
api.mutate(
|
|
84
|
+
addCustomFields(modifyOrderDocument, {
|
|
85
|
+
includeNestedFragments: ['OrderLine', 'Fulfillment'],
|
|
86
|
+
}),
|
|
87
|
+
)({ input }),
|
|
81
88
|
});
|
|
82
89
|
|
|
83
90
|
// Trigger preview when dialog opens or input changes (while open)
|
|
@@ -245,12 +252,8 @@ export function OrderModificationPreviewDialog({
|
|
|
245
252
|
render={({ field }) => (
|
|
246
253
|
<MoneyInput
|
|
247
254
|
{...field}
|
|
248
|
-
value={
|
|
249
|
-
|
|
250
|
-
}
|
|
251
|
-
onChange={
|
|
252
|
-
field.onChange
|
|
253
|
-
}
|
|
255
|
+
value={field.value || 0}
|
|
256
|
+
onChange={field.onChange}
|
|
254
257
|
currency={
|
|
255
258
|
orderSnapshot.currencyCode
|
|
256
259
|
}
|
|
@@ -343,7 +346,9 @@ export function OrderModificationPreviewDialog({
|
|
|
343
346
|
)}
|
|
344
347
|
</div>
|
|
345
348
|
<DialogFooter>
|
|
346
|
-
<DialogClose
|
|
349
|
+
<DialogClose
|
|
350
|
+
render={<Button type="button" variant="secondary" onClick={() => onResolve()} />}
|
|
351
|
+
>
|
|
347
352
|
<Trans>Cancel</Trans>
|
|
348
353
|
</DialogClose>
|
|
349
354
|
<Button
|