Merge "fix: fix getColumns and searchFilters in trove instance"

This commit is contained in:
Zuul 2022-07-29 11:12:25 +00:00 committed by Gerrit Code Review
commit e37e869981

View File

@ -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));