[Query Copilot] New Query button added on Items section (#1552)
Co-authored-by: Predrag Klepic <v-prklepic@microsoft.com>
This commit is contained in:
parent
8ea8f0230f
commit
44e25c0769
|
@ -17,7 +17,7 @@ export const SampleDataTree = ({
|
||||||
const buildSampleDataTree = (): TreeNode => {
|
const buildSampleDataTree = (): TreeNode => {
|
||||||
const updatedSampleTree: TreeNode = {
|
const updatedSampleTree: TreeNode = {
|
||||||
label: sampleDataResourceTokenCollection.databaseId,
|
label: sampleDataResourceTokenCollection.databaseId,
|
||||||
isExpanded: true,
|
isExpanded: false,
|
||||||
iconSrc: CosmosDBIcon,
|
iconSrc: CosmosDBIcon,
|
||||||
className: "databaseHeader",
|
className: "databaseHeader",
|
||||||
children: [
|
children: [
|
||||||
|
@ -47,6 +47,7 @@ export const SampleDataTree = ({
|
||||||
{
|
{
|
||||||
label: "Items",
|
label: "Items",
|
||||||
onClick: () => sampleDataResourceTokenCollection.onDocumentDBDocumentsClick(),
|
onClick: () => sampleDataResourceTokenCollection.onDocumentDBDocumentsClick(),
|
||||||
|
contextMenu: ResourceTreeContextMenuButtonFactory.createSampleCollectionContextMenuButton(),
|
||||||
isSelected: () =>
|
isSelected: () =>
|
||||||
useSelectedNode
|
useSelectedNode
|
||||||
.getState()
|
.getState()
|
||||||
|
|
Loading…
Reference in New Issue