move nps survey open dialog call to after explorer initialization
This commit is contained in:
parent
76913d42f1
commit
0b7cbfbf23
|
@ -70,6 +70,7 @@ export function sendMessage(data: any): void {
|
|||
}
|
||||
|
||||
export function sendReadyMessage(): void {
|
||||
console.log("SENDING READY MESSAGE");
|
||||
_sendMessage({
|
||||
signature: "pcIframe",
|
||||
kind: "ready",
|
||||
|
|
|
@ -187,7 +187,6 @@ export default class Explorer {
|
|||
}
|
||||
|
||||
this.refreshExplorer();
|
||||
this.openNPSSurveyDialog();
|
||||
}
|
||||
|
||||
public async initiateAndRefreshNotebookList(): Promise<void> {
|
||||
|
|
|
@ -83,6 +83,7 @@ export function useKnockoutExplorer(platform: Platform): Explorer {
|
|||
useEffect(() => {
|
||||
if (explorer) {
|
||||
applyExplorerBindings(explorer);
|
||||
explorer.openNPSSurveyDialog();
|
||||
}
|
||||
}, [explorer]);
|
||||
|
||||
|
@ -588,10 +589,6 @@ async function configurePortal(): Promise<Explorer> {
|
|||
explorer = new Explorer();
|
||||
resolve(explorer);
|
||||
|
||||
// if (userContext.apiType === "Postgres" || userContext.apiType === "SQL" || userContext.apiType === "Mongo") {
|
||||
// setTimeout(() => explorer.openNPSSurveyDialog(), 3000);
|
||||
// }
|
||||
|
||||
if (openAction) {
|
||||
handleOpenAction(openAction, useDatabases.getState().databases, explorer);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue