From 572a83dac7f53019b8480c729f75bf6066a9eee9 Mon Sep 17 00:00:00 2001 From: BranislavGrbicMDCS <55592643+BranislavGrbicMDCS@users.noreply.github.com> Date: Thu, 31 Oct 2019 21:25:39 +0100 Subject: [PATCH] Hidding error message for sql on demand on server dashboard (#8146) * Hidding error message for sql on demand * Using constant instead of hardcoded value --- .../browser/widgets/properties/propertiesWidget.component.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/sql/workbench/parts/dashboard/browser/widgets/properties/propertiesWidget.component.ts b/src/sql/workbench/parts/dashboard/browser/widgets/properties/propertiesWidget.component.ts index 6c5bd08c67..3ce499af09 100644 --- a/src/sql/workbench/parts/dashboard/browser/widgets/properties/propertiesWidget.component.ts +++ b/src/sql/workbench/parts/dashboard/browser/widgets/properties/propertiesWidget.component.ts @@ -18,6 +18,7 @@ import * as nls from 'vs/nls'; import { Registry } from 'vs/platform/registry/common/platform'; import { ILogService } from 'vs/platform/log/common/log'; import { subscriptionToDisposable } from 'sql/base/browser/lifecycle'; +import { DatabaseEngineEdition } from 'sql/workbench/api/common/sqlExtHostTypes'; export interface PropertiesConfig { properties: Array; @@ -101,7 +102,9 @@ export class PropertiesWidgetComponent extends DashboardWidget implements IDashb this.handleClipping(); } }, error => { - (this._el.nativeElement).innerText = nls.localize('dashboard.properties.error', "Unable to load dashboard properties"); + if (this._bootstrap.connectionManagementService.connectionInfo.serverInfo.engineEditionId !== DatabaseEngineEdition.SqlOnDemand) { + (this._el.nativeElement).innerText = nls.localize('dashboard.properties.error', "Unable to load dashboard properties"); + } }))); }