@@ -132,6 +132,17 @@ const COLUMNS = [
132132 itemRenderer : ( { poolId } ) => poolId !== undefined && < Pool id = { poolId } link /> ,
133133 name : _ ( 'pool' ) ,
134134 } ,
135+ {
136+ itemRenderer : ( server , formatMessage ) => (
137+ < Text
138+ value = { server . httpProxy || '' }
139+ onChange = { httpProxy => editServer ( server , { httpProxy } ) }
140+ placeholder = { formatMessage ( messages . serverHttpProxyPlaceHolder ) }
141+ />
142+ ) ,
143+ name : _ ( 'serverHttpProxy' ) ,
144+ sortCriteria : _ => _ . httpProxy ,
145+ } ,
135146]
136147const INDIVIDUAL_ACTIONS = [
137148 {
@@ -152,16 +163,16 @@ export default class Servers extends Component {
152163 }
153164
154165 _addServer = async ( ) => {
155- const { label, host, password, username, allowUnauthorized } = this . state
156-
157- await addServer ( host , username , password , label , allowUnauthorized )
166+ const { label, host, password, username, allowUnauthorized, httpProxy } = this . state
167+ await addServer ( host , username , password , label , allowUnauthorized , httpProxy )
158168
159169 this . setState ( {
160170 allowUnauthorized : false ,
161171 host : '' ,
162172 label : '' ,
163173 password : '' ,
164174 username : '' ,
175+ httpProxy : '' ,
165176 } )
166177 }
167178
@@ -227,6 +238,15 @@ export default class Servers extends Component {
227238 < Toggle onChange = { this . linkState ( 'allowUnauthorized' ) } value = { state . allowUnauthorized } />
228239 </ Tooltip >
229240 </ div > { ' ' }
241+ < div className = 'form-group' >
242+ < input
243+ className = 'form-control'
244+ onChange = { this . linkState ( 'httpProxy' ) }
245+ placeholder = { formatMessage ( messages . serverHttpProxy ) }
246+ type = 'url'
247+ value = { state . httpProxy || '' }
248+ />
249+ </ div > { ' ' }
230250 < ActionButton btnStyle = 'primary' form = 'form-add-server' handler = { this . _addServer } icon = 'save' >
231251 { _ ( 'serverConnect' ) }
232252 </ ActionButton >
0 commit comments