mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-01-24 01:25:37 -05:00
Fix widget title in home tab (#1325)
This commit is contained in:
@@ -156,6 +156,14 @@ export class DashboardWidgetWrapper extends AngularDisposable implements OnInit
|
||||
return;
|
||||
}
|
||||
|
||||
// If _config.name is not set, set it to _config.widget.name
|
||||
if (!this._config.name) {
|
||||
let widget = Object.values(this._config.widget)[0];
|
||||
if (widget.name) {
|
||||
this._config.name = widget.name;
|
||||
}
|
||||
}
|
||||
|
||||
let componentFactory = this._componentFactoryResolver.resolveComponentFactory(selector);
|
||||
|
||||
let viewContainerRef = this.componentHost.viewContainerRef;
|
||||
|
||||
@@ -99,6 +99,7 @@ export const databaseDashboardSettingSchema: IJSONSchema = {
|
||||
}
|
||||
},
|
||||
{
|
||||
name: 'Search',
|
||||
gridItemConfig: {
|
||||
sizex: 1,
|
||||
sizey: 2
|
||||
|
||||
@@ -85,6 +85,7 @@ let defaultVal = [
|
||||
}
|
||||
},
|
||||
{
|
||||
name: 'Search',
|
||||
gridItemConfig: {
|
||||
sizex: 1,
|
||||
sizey: 2
|
||||
|
||||
Reference in New Issue
Block a user