[Query Copilot] Dropdown hide and buttons disabled in specific occasions (#1534)

Co-authored-by: Predrag Klepic <v-prklepic@microsoft.com>
This commit is contained in:
Predrag Klepic
2023-07-15 00:01:16 +02:00
committed by GitHub
parent fb6eb635c1
commit 53cd78452b
3 changed files with 74 additions and 54 deletions

View File

@@ -491,7 +491,7 @@ function createOpenTerminalButton(container: Explorer): CommandButtonComponentPr
onCommandClick: () => container.openNotebookTerminal(ViewModels.TerminalKind.Default),
commandButtonLabel: label,
hasPopup: false,
disabled: false,
disabled: useSelectedNode.getState().isQueryCopilotCollectionSelected(),
ariaLabel: label,
};
}