|
@@ -309,29 +309,30 @@ const Collections = () => {
|
|
disabledTooltip: collectionTrans('deleteTooltip'),
|
|
disabledTooltip: collectionTrans('deleteTooltip'),
|
|
disabled: data => data.length === 0,
|
|
disabled: data => data.length === 0,
|
|
},
|
|
},
|
|
- {
|
|
|
|
- type: 'iconBtn',
|
|
|
|
- onClick: () => {
|
|
|
|
- setDialog({
|
|
|
|
- open: true,
|
|
|
|
- type: 'custom',
|
|
|
|
- params: {
|
|
|
|
- component: (
|
|
|
|
- <CreateAlias
|
|
|
|
- collectionName={selectedCollections[0]._name}
|
|
|
|
- cb={() => {
|
|
|
|
- setSelectedCollections([]);
|
|
|
|
- }}
|
|
|
|
- />
|
|
|
|
- ),
|
|
|
|
- },
|
|
|
|
- });
|
|
|
|
- },
|
|
|
|
- label: collectionTrans('alias'),
|
|
|
|
- icon: 'alias',
|
|
|
|
- disabledTooltip: collectionTrans('aliasTooltip'),
|
|
|
|
- disabled: data => data.length !== 1,
|
|
|
|
- },
|
|
|
|
|
|
+ // Todo: hide alias after we can get all alias from milvus.
|
|
|
|
+ // {
|
|
|
|
+ // type: 'iconBtn',
|
|
|
|
+ // onClick: () => {
|
|
|
|
+ // setDialog({
|
|
|
|
+ // open: true,
|
|
|
|
+ // type: 'custom',
|
|
|
|
+ // params: {
|
|
|
|
+ // component: (
|
|
|
|
+ // <CreateAlias
|
|
|
|
+ // collectionName={selectedCollections[0]._name}
|
|
|
|
+ // cb={() => {
|
|
|
|
+ // setSelectedCollections([]);
|
|
|
|
+ // }}
|
|
|
|
+ // />
|
|
|
|
+ // ),
|
|
|
|
+ // },
|
|
|
|
+ // });
|
|
|
|
+ // },
|
|
|
|
+ // label: collectionTrans('alias'),
|
|
|
|
+ // icon: 'alias',
|
|
|
|
+ // disabledTooltip: collectionTrans('aliasTooltip'),
|
|
|
|
+ // disabled: data => data.length !== 1,
|
|
|
|
+ // },
|
|
{
|
|
{
|
|
label: 'Search',
|
|
label: 'Search',
|
|
icon: 'search',
|
|
icon: 'search',
|