fmt(js): npm run fix on merge (#89759)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
This commit is contained in:
committed by
GitHub
parent
9ed738fa0c
commit
292d0df04d
@@ -185,7 +185,8 @@ export function ConnectionSwitcher({ compact = false, onConnect }: { compact?: b
|
||||
'[role="menuitemradio"]:not([data-disabled])'
|
||||
)
|
||||
|
||||
const target = event.key === 'ArrowDown' ? results?.item(0) : results?.item((results?.length ?? 1) - 1)
|
||||
const target =
|
||||
event.key === 'ArrowDown' ? results?.item(0) : results?.item((results?.length ?? 1) - 1)
|
||||
|
||||
if (target) {
|
||||
event.preventDefault()
|
||||
@@ -231,10 +232,7 @@ export function ConnectionSwitcher({ compact = false, onConnect }: { compact?: b
|
||||
)}
|
||||
</DropdownMenuRadioGroup>
|
||||
<DropdownMenuSeparator className={searchable ? 'm-0' : undefined} />
|
||||
<DropdownMenuItem
|
||||
className={searchable ? dropdownMenuRow : undefined}
|
||||
onSelect={onConnect}
|
||||
>
|
||||
<DropdownMenuItem className={searchable ? dropdownMenuRow : undefined} onSelect={onConnect}>
|
||||
<ManageGatewaysLabel label={t.profiles.connectGateway} />
|
||||
</DropdownMenuItem>
|
||||
</DropdownMenuContent>
|
||||
|
||||
@@ -438,7 +438,9 @@ describe('refreshSessions batches slices into one request', () => {
|
||||
const personalRefresh = result.current.refreshSessions()
|
||||
|
||||
await act(async () => {
|
||||
personal.resolve(sidebar({ sessions: [row('personal-session')] }, [], [row('personal-chat', { source: 'telegram' })]))
|
||||
personal.resolve(
|
||||
sidebar({ sessions: [row('personal-session')] }, [], [row('personal-chat', { source: 'telegram' })])
|
||||
)
|
||||
await personalRefresh
|
||||
|
||||
work.resolve(sidebar({ sessions: [row('work-session')] }, [], [row('work-chat', { source: 'signal' })]))
|
||||
|
||||
@@ -64,6 +64,7 @@ describe('connection display helpers', () => {
|
||||
tokenSet: true,
|
||||
url: 'https://work.example.test:9443'
|
||||
}
|
||||
|
||||
const ssh = {
|
||||
...connection('studio', 'Studio over SSH', 'ssh'),
|
||||
host: 'studio.example.test',
|
||||
|
||||
Reference in New Issue
Block a user