chore(xo-web/proxies): remove proxy address column (#4951)

This commit is contained in:
badrAZ 2020-04-24 17:16:58 +02:00 committed by GitHub
parent 7775df8ef1
commit 21a9e0e2a7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -29,13 +29,6 @@ import deployProxy from './deploy-proxy'
const _editProxy = (value, { name, proxy }) =>
editProxyAppliance(proxy, { [name]: value })
const _editProxyAddress = (value, { proxy }) => {
value = value.trim()
return editProxyAppliance(proxy, {
address: value !== '' ? value : null,
})
}
const HEADER = (
<h2>
<Icon icon='proxy' /> {_('proxies')}
@ -124,17 +117,6 @@ const COLUMNS = [
name: _('name'),
sortCriteria: 'name',
},
{
itemRenderer: proxy => (
<Text
data-proxy={proxy}
onChange={_editProxyAddress}
value={defined(proxy.address, '')}
/>
),
name: _('address'),
sortCriteria: 'address',
},
{
itemRenderer: proxy => <Vm id={proxy.vmUuid} link newTab />,
name: _('vm'),