Merge "fix: fix getColumns and searchFilters in trove instance"
This commit is contained in:
commit
e37e869981
@ -17,6 +17,7 @@ import { observer, inject } from 'mobx-react';
|
||||
import Base from 'containers/List';
|
||||
import globalInstancesStore from 'stores/trove/instances';
|
||||
import { InstanceStatus } from 'resources/trove/database';
|
||||
import { getOptions } from 'utils/index';
|
||||
import actions from './actions';
|
||||
|
||||
export class Instances extends Base {
|
||||
@ -49,10 +50,20 @@ export class Instances extends Base {
|
||||
label: t('Name'),
|
||||
name: 'name',
|
||||
},
|
||||
{
|
||||
label: t('Version'),
|
||||
name: 'version',
|
||||
},
|
||||
{
|
||||
label: t('Status'),
|
||||
name: 'status',
|
||||
options: getOptions(InstanceStatus),
|
||||
},
|
||||
];
|
||||
}
|
||||
|
||||
getColumns = () => [
|
||||
getColumns() {
|
||||
return [
|
||||
{
|
||||
title: t('ID/Name'),
|
||||
dataIndex: 'name',
|
||||
@ -102,5 +113,6 @@ export class Instances extends Base {
|
||||
},
|
||||
];
|
||||
}
|
||||
}
|
||||
|
||||
export default inject('rootStore')(observer(Instances));
|
||||
|
Loading…
Reference in New Issue
Block a user