@autobusal/admin-agents 1.3.0 → 1.3.1
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/Manage.tsx +14 -7
- package/package.json +1 -1
package/Manage.tsx
CHANGED
|
@@ -221,28 +221,33 @@ const Manage = ({ url, t }: Props): JSX.Element => {
|
|
|
221
221
|
label: t('admin_agents.manage.departure', { ns: 'common' }),
|
|
222
222
|
name: 'departure',
|
|
223
223
|
type: 'text',
|
|
224
|
-
value: data?.user.comissions?.departure_edit
|
|
224
|
+
value: data?.user.comissions?.departure_edit,
|
|
225
|
+
notice: t('admin_agents.manage.departure_notice', { ns: 'common' })
|
|
225
226
|
}, {
|
|
226
227
|
label: t('admin_agents.manage.departure_self', { ns: 'common' }),
|
|
227
228
|
name: 'departure_self',
|
|
228
229
|
type: 'text',
|
|
229
|
-
value: data?.user.comissions?.departure_self_edit
|
|
230
|
+
value: data?.user.comissions?.departure_self_edit,
|
|
231
|
+
notice: t('admin_agents.manage.departure_self_notice', { ns: 'common' })
|
|
230
232
|
}, {}, {
|
|
231
233
|
label: t('admin_agents.manage.return', { ns: 'common' }),
|
|
232
234
|
name: 'return',
|
|
233
235
|
type: 'text',
|
|
234
|
-
value: data?.user.comissions?.return_edit
|
|
236
|
+
value: data?.user.comissions?.return_edit,
|
|
237
|
+
notice: t('admin_agents.manage.return_notice', { ns: 'common' })
|
|
235
238
|
}, {
|
|
236
239
|
label: t('admin_agents.manage.return_self', { ns: 'common' }),
|
|
237
240
|
name: 'return_self',
|
|
238
241
|
type: 'text',
|
|
239
|
-
value: data?.user.comissions?.return_self_edit
|
|
242
|
+
value: data?.user.comissions?.return_self_edit,
|
|
243
|
+
notice: t('admin_agents.manage.return_self_notice', { ns: 'common' })
|
|
240
244
|
}, {}, {
|
|
241
245
|
label: t('admin_agents.manage.unique', { ns: 'common' }),
|
|
242
246
|
name: 'unique',
|
|
243
247
|
type: 'select',
|
|
244
248
|
value: data?.user.comissions?.unique ?? 0,
|
|
245
|
-
values: getAllowed(t)
|
|
249
|
+
values: getAllowed(t),
|
|
250
|
+
notice: t('admin_agents.manage.unique_notice', { ns: 'common' })
|
|
246
251
|
}, {
|
|
247
252
|
// Claude - 2026-08-22: the floor of the agent's funds balance
|
|
248
253
|
// for website sales - 0 = prepaid (the historic behaviour),
|
|
@@ -252,7 +257,8 @@ const Manage = ({ url, t }: Props): JSX.Element => {
|
|
|
252
257
|
name: 'credit_limit',
|
|
253
258
|
type: 'text',
|
|
254
259
|
value: data?.credit_limit ?? 0,
|
|
255
|
-
rules: 'required|numeric'
|
|
260
|
+
rules: 'required|numeric',
|
|
261
|
+
notice: t('admin_agents.manage.credit_limit_notice', { ns: 'common' })
|
|
256
262
|
}, ...(id > 0 ? [{
|
|
257
263
|
/*
|
|
258
264
|
* Claude - 2026-09-24 (Ferjolt: one API login type). The old
|
|
@@ -306,7 +312,8 @@ const Manage = ({ url, t }: Props): JSX.Element => {
|
|
|
306
312
|
name: 'external',
|
|
307
313
|
type: 'select',
|
|
308
314
|
value: data?.user.comissions?.external ?? 0,
|
|
309
|
-
values: getAllowed(t)
|
|
315
|
+
values: getAllowed(t),
|
|
316
|
+
notice: t('admin_agents.manage.external_notice', { ns: 'common' })
|
|
310
317
|
}, {
|
|
311
318
|
label: t('admin_agents.manage.devpos_settings', { ns: 'common' }),
|
|
312
319
|
name: 'devpos_settings',
|