move nps survey open dialog call to after explorer initialization

This commit is contained in:
Sung-Hyun Kang 2024-08-13 13:06:01 -05:00
parent 76913d42f1
commit 0b7cbfbf23
3 changed files with 2 additions and 5 deletions

View File

@ -70,6 +70,7 @@ export function sendMessage(data: any): void {
} }
export function sendReadyMessage(): void { export function sendReadyMessage(): void {
console.log("SENDING READY MESSAGE");
_sendMessage({ _sendMessage({
signature: "pcIframe", signature: "pcIframe",
kind: "ready", kind: "ready",

View File

@ -187,7 +187,6 @@ export default class Explorer {
} }
this.refreshExplorer(); this.refreshExplorer();
this.openNPSSurveyDialog();
} }
public async initiateAndRefreshNotebookList(): Promise<void> { public async initiateAndRefreshNotebookList(): Promise<void> {

View File

@ -83,6 +83,7 @@ export function useKnockoutExplorer(platform: Platform): Explorer {
useEffect(() => { useEffect(() => {
if (explorer) { if (explorer) {
applyExplorerBindings(explorer); applyExplorerBindings(explorer);
explorer.openNPSSurveyDialog();
} }
}, [explorer]); }, [explorer]);
@ -588,10 +589,6 @@ async function configurePortal(): Promise<Explorer> {
explorer = new Explorer(); explorer = new Explorer();
resolve(explorer); resolve(explorer);
// if (userContext.apiType === "Postgres" || userContext.apiType === "SQL" || userContext.apiType === "Mongo") {
// setTimeout(() => explorer.openNPSSurveyDialog(), 3000);
// }
if (openAction) { if (openAction) {
handleOpenAction(openAction, useDatabases.getState().databases, explorer); handleOpenAction(openAction, useDatabases.getState().databases, explorer);
} }