Hide connect button incase Phoenix Notebooks flight is false (#1314)

* Hide connect button id flight notebooks is false and show only if features are used
This commit is contained in:
Karthik chakravarthy
2022-08-10 09:29:23 -04:00
committed by GitHub
parent d0c2f72ed3
commit 89c7ebdd20
3 changed files with 15 additions and 4 deletions

View File

@@ -312,8 +312,8 @@ export const useNotebook: UseStore<NotebookState> = create((set, get) => ({
if (dbAccountAllowedInfo.status === HttpStatusCodes.OK) {
if (dbAccountAllowedInfo?.type === PhoenixErrorType.PhoenixFlightFallback) {
isPhoenixNotebooks = isPublicInternetAllowed && userContext.features.phoenixNotebooks;
isPhoenixFeatures = isPublicInternetAllowed && userContext.features.phoenixFeatures;
isPhoenixNotebooks = isPublicInternetAllowed && userContext.features.phoenixNotebooks === true;
isPhoenixFeatures = isPublicInternetAllowed && userContext.features.phoenixFeatures === true;
} else {
isPhoenixNotebooks = isPhoenixFeatures = isPublicInternetAllowed;
}