fix: update the id/name column of listener members
Update the id/name column in the member list tab in the load balance listener detail page to keep the unified style Change-Id: I9c648b56316a48786ae5c67b3dc248ebbd1d481c
This commit is contained in:
parent
a29d9dacd3
commit
2e22275d60
@ -12,11 +12,11 @@
|
|||||||
// See the License for the specific language governing permissions and
|
// See the License for the specific language governing permissions and
|
||||||
// limitations under the License.
|
// limitations under the License.
|
||||||
|
|
||||||
import React from 'react';
|
|
||||||
import { observer, inject } from 'mobx-react';
|
import { observer, inject } from 'mobx-react';
|
||||||
import Base from 'containers/List';
|
import Base from 'containers/List';
|
||||||
import { provisioningStatusCodes } from 'resources/octavia/lb';
|
import { provisioningStatusCodes } from 'resources/octavia/lb';
|
||||||
import globalPoolMemberStore from 'stores/octavia/pool-member';
|
import globalPoolMemberStore from 'stores/octavia/pool-member';
|
||||||
|
import { idNameColumn } from 'utils/table';
|
||||||
import { actionConfigs, adminActions } from './Actions';
|
import { actionConfigs, adminActions } from './Actions';
|
||||||
|
|
||||||
export class Members extends Base {
|
export class Members extends Base {
|
||||||
@ -61,17 +61,7 @@ export class Members extends Base {
|
|||||||
}
|
}
|
||||||
|
|
||||||
getColumns = () => [
|
getColumns = () => [
|
||||||
{
|
idNameColumn,
|
||||||
title: t('ID/Name'),
|
|
||||||
dataIndex: 'name',
|
|
||||||
stringify: (name, record) => name || record.id,
|
|
||||||
render: (name, item) => (
|
|
||||||
<>
|
|
||||||
{item.id}
|
|
||||||
<div>{name && `(${name})`}</div>
|
|
||||||
</>
|
|
||||||
),
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
title: t('Status'),
|
title: t('Status'),
|
||||||
dataIndex: 'provisioning_status',
|
dataIndex: 'provisioning_status',
|
||||||
|
Loading…
Reference in New Issue
Block a user