remove feature flag and add preview text in the button (#1383)

This commit is contained in:
sunghyunkang1111 2023-02-03 10:15:35 -06:00 committed by GitHub
parent 7dbccff41d
commit a827e79317
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -597,15 +597,15 @@ export class AddCollectionPanel extends React.Component<AddCollectionPanelProps,
</Stack> </Stack>
); );
})} })}
{userContext.apiType === "SQL" && userContext.features.enableHierarchicalKeys && ( {userContext.apiType === "SQL" && (
<Stack className="panelGroupSpacing"> <Stack className="panelGroupSpacing">
<DefaultButton <DefaultButton
styles={{ root: { padding: 0, width: 200, height: 30 }, label: { fontSize: 12 } }} styles={{ root: { padding: 0, width: 250, height: 30 }, label: { fontSize: 12 } }}
hidden={this.state.useHashV1} hidden={this.state.useHashV1}
disabled={this.state.subPartitionKeys.length >= Constants.BackendDefaults.maxNumMultiHashPartition} disabled={this.state.subPartitionKeys.length >= Constants.BackendDefaults.maxNumMultiHashPartition}
onClick={() => this.setState({ subPartitionKeys: [...this.state.subPartitionKeys, ""] })} onClick={() => this.setState({ subPartitionKeys: [...this.state.subPartitionKeys, ""] })}
> >
Add hierarchical partition key Add hierarchical partition key (preview)
</DefaultButton> </DefaultButton>
{this.state.subPartitionKeys.length > 0 && ( {this.state.subPartitionKeys.length > 0 && (
<Text variant="small"> <Text variant="small">