|
@@ -225,26 +225,26 @@ const Collections = () => {
|
|
|
},
|
|
|
icon: 'add',
|
|
|
},
|
|
|
- {
|
|
|
- label: btnTrans('insert'),
|
|
|
- onClick: () => {
|
|
|
- setDialog({
|
|
|
- open: true,
|
|
|
- type: 'custom',
|
|
|
- params: {
|
|
|
- component: <InsertContainer />,
|
|
|
- },
|
|
|
- });
|
|
|
- },
|
|
|
- /**
|
|
|
- * insert validation:
|
|
|
- * 1. At least 1 available collection
|
|
|
- * 2. selected collections quantity shouldn't over 1
|
|
|
- */
|
|
|
- disabled: () =>
|
|
|
- collectionList.length === 0 || selectedCollections.length > 1,
|
|
|
- icon: 'upload',
|
|
|
- },
|
|
|
+ // {
|
|
|
+ // label: btnTrans('insert'),
|
|
|
+ // onClick: () => {
|
|
|
+ // setDialog({
|
|
|
+ // open: true,
|
|
|
+ // type: 'custom',
|
|
|
+ // params: {
|
|
|
+ // component: <InsertContainer />,
|
|
|
+ // },
|
|
|
+ // });
|
|
|
+ // },
|
|
|
+ // /**
|
|
|
+ // * insert validation:
|
|
|
+ // * 1. At least 1 available collection
|
|
|
+ // * 2. selected collections quantity shouldn't over 1
|
|
|
+ // */
|
|
|
+ // disabled: () =>
|
|
|
+ // collectionList.length === 0 || selectedCollections.length > 1,
|
|
|
+ // icon: 'upload',
|
|
|
+ // },
|
|
|
{
|
|
|
type: 'iconBtn',
|
|
|
onClick: () => {
|