@open-mercato/core 0.9.1-develop.7532.1.8eac7e198f → 0.9.1-develop.7536.1.f9a5776a07
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/.turbo/turbo-build.log +1 -1
- package/dist/modules/auth/api/logout.js +8 -5
- package/dist/modules/auth/api/logout.js.map +2 -2
- package/dist/modules/currencies/backend/currencies/[id]/page.js +5 -2
- package/dist/modules/currencies/backend/currencies/[id]/page.js.map +2 -2
- package/dist/modules/currencies/commands/currencies.js +399 -137
- package/dist/modules/currencies/commands/currencies.js.map +2 -2
- package/dist/modules/currencies/lib/seeds.js +2 -0
- package/dist/modules/currencies/lib/seeds.js.map +2 -2
- package/dist/modules/customers/commands/companies.js +10 -3
- package/dist/modules/customers/commands/companies.js.map +2 -2
- package/dist/modules/customers/commands/interactionRestoreDetails.js +75 -0
- package/dist/modules/customers/commands/interactionRestoreDetails.js.map +7 -0
- package/dist/modules/customers/commands/people.js +10 -3
- package/dist/modules/customers/commands/people.js.map +2 -2
- package/package.json +7 -7
- package/src/modules/auth/api/logout.ts +9 -5
- package/src/modules/currencies/backend/currencies/[id]/page.tsx +5 -1
- package/src/modules/currencies/commands/currencies.ts +475 -168
- package/src/modules/currencies/i18n/de.json +4 -0
- package/src/modules/currencies/i18n/en.json +4 -0
- package/src/modules/currencies/i18n/es.json +4 -0
- package/src/modules/currencies/i18n/ko.json +4 -0
- package/src/modules/currencies/i18n/pl.json +4 -0
- package/src/modules/currencies/lib/seeds.ts +2 -0
- package/src/modules/customers/commands/companies.ts +16 -4
- package/src/modules/customers/commands/interactionRestoreDetails.ts +110 -0
- package/src/modules/customers/commands/people.ts +16 -4
|
@@ -75,6 +75,8 @@ export default function EditCurrencyPage({ params }: { params?: { id?: string }
|
|
|
75
75
|
loadCurrency()
|
|
76
76
|
}, [params, t])
|
|
77
77
|
|
|
78
|
+
const isCurrentBase = currency?.isBase === true
|
|
79
|
+
|
|
78
80
|
const groups = React.useMemo<CrudFormGroup[]>(
|
|
79
81
|
() => [
|
|
80
82
|
{
|
|
@@ -136,6 +138,8 @@ export default function EditCurrencyPage({ params }: { params?: { id?: string }
|
|
|
136
138
|
id: 'isBase',
|
|
137
139
|
type: 'checkbox',
|
|
138
140
|
label: t('currencies.form.field.isBase'),
|
|
141
|
+
disabled: isCurrentBase,
|
|
142
|
+
description: isCurrentBase ? t('currencies.form.field.isBaseLocked') : undefined,
|
|
139
143
|
},
|
|
140
144
|
{
|
|
141
145
|
id: 'isActive',
|
|
@@ -145,7 +149,7 @@ export default function EditCurrencyPage({ params }: { params?: { id?: string }
|
|
|
145
149
|
],
|
|
146
150
|
},
|
|
147
151
|
],
|
|
148
|
-
[t]
|
|
152
|
+
[t, isCurrentBase]
|
|
149
153
|
)
|
|
150
154
|
|
|
151
155
|
const handleDelete = React.useCallback(async () => {
|