feat(locales): Replace 'nodeGroupId' with 'groupId' in multiple language files for consistency

This commit is contained in:
web@ppanel
2025-01-08 23:13:32 +07:00
parent 70497af0aa
commit a4e9d5da59
79 changed files with 413 additions and 159 deletions
@@ -139,7 +139,7 @@ export default function NodeForm<T extends { [x: string]: any }>({
name='group_id'
render={({ field }) => (
<FormItem>
<FormLabel>{t('form.nodeGroupId')}</FormLabel>
<FormLabel>{t('form.groupId')}</FormLabel>
<FormControl>
<Combobox<number, false>
placeholder={t('form.selectNodeGroup')}
@@ -148,6 +148,9 @@ export default function NodeForm<T extends { [x: string]: any }>({
value: item.id,
label: item.name,
}))}
onChange={(value) => {
form.setValue(field.name, value || 0);
}}
/>
</FormControl>
<FormMessage />
@@ -135,7 +135,7 @@ export default function NodeTable() {
accessorKey: 'speed_limit',
header: t('speedLimit'),
cell: ({ row }) => (
<Display type='traffic' value={row.getValue('speed_limit')} unlimited />
<Display type='trafficSpeed' value={row.getValue('speed_limit')} unlimited />
),
},
{