mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-01-24 09:35:37 -05:00
Hidding error message for sql on demand on server dashboard (#8146)
* Hidding error message for sql on demand * Using constant instead of hardcoded value
This commit is contained in:
committed by
GitHub
parent
dbf834c00f
commit
572a83dac7
@@ -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<Property>;
|
||||
@@ -101,7 +102,9 @@ export class PropertiesWidgetComponent extends DashboardWidget implements IDashb
|
||||
this.handleClipping();
|
||||
}
|
||||
}, error => {
|
||||
(<HTMLElement>this._el.nativeElement).innerText = nls.localize('dashboard.properties.error', "Unable to load dashboard properties");
|
||||
if (this._bootstrap.connectionManagementService.connectionInfo.serverInfo.engineEditionId !== DatabaseEngineEdition.SqlOnDemand) {
|
||||
(<HTMLElement>this._el.nativeElement).innerText = nls.localize('dashboard.properties.error', "Unable to load dashboard properties");
|
||||
}
|
||||
})));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user