fix(cat): the chip says what YOU called the radio
It showed what the radio calls itself over CAT — 'Kenwood (911)' for a K3, a bare 'CAT' for a Flex that reports nothing useful. That is the answer to a question nobody asks once the rig has a name in the list, and it made the two radios look alike in the one place they have to be told apart. The name the operator typed comes first now, on the chip and in the menu, and falls back to the radio's own identity when they typed none. The model identity is still in the tooltip, where it answers 'what is actually connected' without taking the place of 'which of my rigs is this'.
This commit is contained in:
@@ -3224,7 +3224,7 @@ function SettingsModalImpl({ onClose, onSaved, initialSection, onMainPaneChanged
|
||||
<SelectTrigger className="h-9 flex-1"><SelectValue placeholder={t('cat.radio')} /></SelectTrigger>
|
||||
<SelectContent>
|
||||
{radios.map((r: any, i: number) => (
|
||||
<SelectItem key={r.id} value={r.id}>{r.name?.trim() || `Radio ${i + 1}`}</SelectItem>
|
||||
<SelectItem key={r.id} value={r.id}>{r.name?.trim() || r.label || `Radio ${i + 1}`}</SelectItem>
|
||||
))}
|
||||
</SelectContent>
|
||||
</Select>
|
||||
|
||||
Reference in New Issue
Block a user