Fix RPC import issue preventing Host input field from appearing in Electron mode (#991)

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: thomasnordquist <7721625+thomasnordquist@users.noreply.github.com>
Co-authored-by: Thomas Nordquist <thomasnordquist@users.noreply.github.com>
This commit is contained in:
Copilot
2025-12-24 16:57:08 +01:00
committed by GitHub
parent 7e5b013448
commit a3de71d939
11 changed files with 145 additions and 11 deletions

View File

@@ -8,7 +8,7 @@ import { CertificateTypes } from '../../actions/ConnectionManager'
import { connect } from 'react-redux'
import { connectionManagerActions } from '../../actions'
import { withStyles } from '@mui/styles'
import { rendererRpc } from '../../../../events'
import { rendererRpc } from '../../eventBus'
import { RpcEvents } from '../../../../events/EventsV2'
function BrowserCertificateFileSelection(props: {

View File

@@ -188,6 +188,7 @@ function ConnectionSettings(props: Props) {
value={connection.host}
onChange={handleChange('host')}
margin="normal"
inputProps={{ 'data-testid': 'host-input' }}
/>
</Grid>
<Grid item={true} xs={3}>

View File

@@ -13,7 +13,7 @@ import { withStyles } from '@mui/styles'
import { updateNotifierActions } from '../actions'
import { Button, IconButton, Modal, Paper, Snackbar, SnackbarContent, Typography } from '@mui/material'
import { rendererRpc, getAppVersion } from '../../../events'
import { rendererRpc, getAppVersion } from '../eventBus'
interface Props {
showUpdateNotification: boolean

View File

@@ -5,7 +5,7 @@ import CustomIconButton from './CustomIconButton'
import { SaveAlt } from '@mui/icons-material'
import { bindActionCreators } from 'redux'
import { rendererRpc, writeToFile } from '../../../../events'
import { rendererRpc, writeToFile } from '../../eventBus'
import { makeSaveDialogRpc } from '../../../../events/OpenDialogRequest'
import { globalActions } from '../../actions'