mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-02-16 10:58:30 -05:00
Some cleanup and fixes for Arc/BDC dashboards (#11075)
This commit is contained in:
@@ -18,7 +18,7 @@ export class ControllerDashboard extends Dashboard {
|
||||
public async showDashboard(): Promise<void> {
|
||||
await super.showDashboard();
|
||||
// Kick off the model refresh but don't wait on it since that's all handled with callbacks anyways
|
||||
this._controllerModel.refresh().catch(err => console.log(`Error refreshing Controller dashboard ${err}`));
|
||||
this._controllerModel.refresh(false).catch(err => console.log(`Error refreshing Controller dashboard ${err}`));
|
||||
}
|
||||
|
||||
protected async registerTabs(modelView: azdata.ModelView): Promise<(azdata.DashboardTab | azdata.DashboardTabGroup)[]> {
|
||||
|
||||
@@ -162,7 +162,7 @@ export class ControllerDashboardOverviewPage extends DashboardPage {
|
||||
try {
|
||||
this._propertiesLoadingComponent!.loading = true;
|
||||
this._arcResourcesLoadingComponent!.loading = true;
|
||||
await this._controllerModel.refresh();
|
||||
await this.refresh();
|
||||
} finally {
|
||||
refreshButton.enabled = true;
|
||||
}
|
||||
|
||||
@@ -24,10 +24,6 @@ export class MiaaConnectionStringsPage extends DashboardPage {
|
||||
}));
|
||||
}
|
||||
|
||||
protected async refresh(): Promise<void> {
|
||||
await this._controllerModel.refresh();
|
||||
}
|
||||
|
||||
protected get title(): string {
|
||||
return loc.connectionStrings;
|
||||
}
|
||||
|
||||
@@ -199,10 +199,7 @@ export class MiaaDashboardOverviewPage extends DashboardPage {
|
||||
this._grafanaLoading!.loading = true;
|
||||
this._databasesTableLoading!.loading = true;
|
||||
|
||||
await Promise.all([
|
||||
this._miaaModel.refresh(),
|
||||
this._controllerModel.refresh()
|
||||
]);
|
||||
await this.refresh();
|
||||
} finally {
|
||||
refreshButton.enabled = true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user