Hide connect btn and only show when phoenix notebooks or features are used (#1318)
This commit is contained in:
parent
06c3b6fe94
commit
a4061a96b1
|
@ -56,10 +56,8 @@ export const CommandBar: React.FC<Props> = ({ container }: Props) => {
|
|||
const connectionInfo = useNotebook((state) => state.connectionInfo);
|
||||
|
||||
if (
|
||||
useNotebook.getState().isPhoenixNotebooks ||
|
||||
(useNotebook.getState().isPhoenixFeatures &&
|
||||
connectionInfo?.status !== ConnectionStatusType.Connect &&
|
||||
connectionInfo?.status !== ConnectionStatusType.Reconnect)
|
||||
(useNotebook.getState().isPhoenixNotebooks || useNotebook.getState().isPhoenixFeatures) &&
|
||||
connectionInfo?.status !== ConnectionStatusType.Connect
|
||||
) {
|
||||
uiFabricControlButtons.unshift(CommandBarUtil.createConnectionStatus(container, "connectionStatus"));
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue