From 8eeda410212998255c5e17b5e94add9545fdaf6a Mon Sep 17 00:00:00 2001 From: victor-meng <56978073+victor-meng@users.noreply.github.com> Date: Thu, 19 Aug 2021 12:18:21 -0700 Subject: [PATCH] Move synapse link out of advanced section in add collection panel (#989) --- src/Explorer/Panes/AddCollectionPanel.tsx | 132 +++++++++++----------- 1 file changed, 66 insertions(+), 66 deletions(-) diff --git a/src/Explorer/Panes/AddCollectionPanel.tsx b/src/Explorer/Panes/AddCollectionPanel.tsx index 39d7ad2c8..3f3cab9e4 100644 --- a/src/Explorer/Panes/AddCollectionPanel.tsx +++ b/src/Explorer/Panes/AddCollectionPanel.tsx @@ -550,6 +550,72 @@ export class AddCollectionPanel extends React.Component )} + {this.shouldShowAnalyticalStoreOptions() && ( + + + + Analytical store + + + + + + + + + On + + + Off + + + {!this.isSynapseLinkEnabled() && ( + + + Azure Synapse Link is required for creating an analytical store{" "} + {getCollectionName().toLocaleLowerCase()}. Enable Synapse Link for this Cosmos DB account.{" "} + + Learn more + + + this.props.explorer.openEnableSynapseLinkDialog()} + style={{ height: 27, width: 80 }} + styles={{ label: { fontSize: 12 } }} + /> + + )} + + )} + {userContext.apiType !== "Tables" && ( )} - - {this.shouldShowAnalyticalStoreOptions() && ( - - - - Analytical store - - - - - - - - - On - - - Off - - - {!this.isSynapseLinkEnabled() && ( - - - Azure Synapse Link is required for creating an analytical store{" "} - {getCollectionName().toLocaleLowerCase()}. Enable Synapse Link for this Cosmos DB account.{" "} - - Learn more - - - this.props.explorer.openEnableSynapseLinkDialog()} - style={{ height: 27, width: 80 }} - styles={{ label: { fontSize: 12 } }} - /> - - )} - - )} )}