mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-02-16 10:58:30 -05:00
custom hint text (#11705)
This commit is contained in:
@@ -35,7 +35,9 @@ export interface FlavorProperties {
|
|||||||
databaseProperties: Array<Property>;
|
databaseProperties: Array<Property>;
|
||||||
serverProperties: Array<Property>;
|
serverProperties: Array<Property>;
|
||||||
databasesListProperties?: Array<ObjectListViewProperty>;
|
databasesListProperties?: Array<ObjectListViewProperty>;
|
||||||
|
databaseListHintText?: string;
|
||||||
objectsListProperties?: Array<ObjectListViewProperty>;
|
objectsListProperties?: Array<ObjectListViewProperty>;
|
||||||
|
objectListHintText?: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface ConditionProperties {
|
export interface ConditionProperties {
|
||||||
|
|||||||
@@ -30,6 +30,7 @@ import { ILogService } from 'vs/platform/log/common/log';
|
|||||||
import { IEditorProgressService } from 'vs/platform/progress/common/progress';
|
import { IEditorProgressService } from 'vs/platform/progress/common/progress';
|
||||||
import { attachInputBoxStyler } from 'vs/platform/theme/common/styler';
|
import { attachInputBoxStyler } from 'vs/platform/theme/common/styler';
|
||||||
import { IWorkbenchThemeService } from 'vs/workbench/services/themes/common/workbenchThemeService';
|
import { IWorkbenchThemeService } from 'vs/workbench/services/themes/common/workbenchThemeService';
|
||||||
|
import { getFlavor } from 'sql/workbench/contrib/dashboard/browser/dashboardRegistry';
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
selector: 'explorer-widget',
|
selector: 'explorer-widget',
|
||||||
@@ -67,8 +68,10 @@ export class ExplorerWidget extends DashboardWidget implements IDashboardWidget,
|
|||||||
|
|
||||||
ngOnInit() {
|
ngOnInit() {
|
||||||
this._inited = true;
|
this._inited = true;
|
||||||
|
const flavor = getFlavor(this._bootstrap.connectionManagementService.connectionInfo.serverInfo, this.logService, this._bootstrap.connectionManagementService.connectionInfo.providerId);
|
||||||
const placeholderLabel = this._config.context === 'database' ? nls.localize('seachObjects', "Search by name of type (t:, v:, f:, or sp:)") : nls.localize('searchDatabases', "Search databases");
|
const placeholderLabel = this._config.context === 'database' ?
|
||||||
|
flavor && flavor.objectListHintText ? flavor.objectListHintText : nls.localize('seachObjects', "Search by name of type (t:, v:, f:, or sp:)")
|
||||||
|
: flavor && flavor.databaseListHintText ? flavor.databaseListHintText : nls.localize('searchDatabases', "Search databases");
|
||||||
|
|
||||||
const inputOptions: IInputOptions = {
|
const inputOptions: IInputOptions = {
|
||||||
placeholder: placeholderLabel,
|
placeholder: placeholderLabel,
|
||||||
|
|||||||
Reference in New Issue
Block a user