Hide launch quick start button and postgres teaching bubbles if account is a replica (#1344)

This commit is contained in:
victor-meng
2022-10-19 17:12:41 -07:00
committed by GitHub
parent 00eb07da11
commit 1ce3adff0f
5 changed files with 9 additions and 7 deletions

View File

@@ -364,7 +364,7 @@ function updateContextsFromPortalMessage(inputs: DataExplorerInputsFrame) {
});
if (inputs.isPostgresAccount) {
updateUserContext({ apiType: "Postgres" });
updateUserContext({ apiType: "Postgres", isReplica: !!inputs.isReplica });
if (inputs.connectionStringParams) {
// TODO: Remove after the nodes param has been updated to be a flat array in the OSS extension