From e20c9569e82b64b6db34f4580b92238ea160f5ae Mon Sep 17 00:00:00 2001 From: Steve Faulkner Date: Wed, 7 Apr 2021 13:31:50 -0500 Subject: [PATCH] Remove dynamic loading status (#616) --- src/Explorer/Explorer.tsx | 32 -------------------------------- 1 file changed, 32 deletions(-) diff --git a/src/Explorer/Explorer.tsx b/src/Explorer/Explorer.tsx index 971ac43a5..de18e3617 100644 --- a/src/Explorer/Explorer.tsx +++ b/src/Explorer/Explorer.tsx @@ -925,10 +925,8 @@ export default class Explorer { // TODO: Refactor const deferred: Q.Deferred = Q.defer(); - this._setLoadingStatusText("Fetching databases..."); readDatabases().then( (databases: DataModels.Database[]) => { - this._setLoadingStatusText("Successfully fetched databases."); TelemetryProcessor.traceSuccess( Action.LoadDatabases, { @@ -941,20 +939,16 @@ export default class Explorer { this.addDatabasesToList(deltaDatabases.toAdd); this.deleteDatabasesFromList(deltaDatabases.toDelete); this.selectedNode(currentlySelectedNode); - this._setLoadingStatusText("Fetching containers..."); this.refreshAndExpandNewDatabases(deltaDatabases.toAdd).then( () => { - this._setLoadingStatusText("Successfully fetched containers."); deferred.resolve(); }, (reason) => { - this._setLoadingStatusText("Failed to fetch containers."); deferred.reject(reason); } ); }, (error) => { - this._setLoadingStatusText("Failed to fetch databases."); deferred.reject(error); const errorMessage = getErrorMessage(error); TelemetryProcessor.traceFailure( @@ -2226,32 +2220,6 @@ export default class Explorer { } } - private _setLoadingStatusText(text: string, title: string = "Welcome to Azure Cosmos DB") { - if (!text) { - return; - } - - const loadingText = document.getElementById("explorerLoadingStatusText"); - if (!loadingText) { - Logger.logError( - "getElementById('explorerLoadingStatusText') failed to find element", - "Explorer/_setLoadingStatusText" - ); - return; - } - loadingText.innerHTML = text; - - const loadingTitle = document.getElementById("explorerLoadingStatusTitle"); - if (!loadingTitle) { - Logger.logError( - "getElementById('explorerLoadingStatusTitle') failed to find element", - "Explorer/_setLoadingStatusText" - ); - } else { - loadingTitle.innerHTML = title; - } - } - private _openSetupNotebooksPaneForQuickstart(): void { const title = "Enable Notebooks (Preview)"; const description =