mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-02-16 10:58:30 -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;
|
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 componentFactory = this._componentFactoryResolver.resolveComponentFactory(selector);
|
||||||
|
|
||||||
let viewContainerRef = this.componentHost.viewContainerRef;
|
let viewContainerRef = this.componentHost.viewContainerRef;
|
||||||
|
|||||||
@@ -99,6 +99,7 @@ export const databaseDashboardSettingSchema: IJSONSchema = {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
name: 'Search',
|
||||||
gridItemConfig: {
|
gridItemConfig: {
|
||||||
sizex: 1,
|
sizex: 1,
|
||||||
sizey: 2
|
sizey: 2
|
||||||
|
|||||||
@@ -85,6 +85,7 @@ let defaultVal = [
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
name: 'Search',
|
||||||
gridItemConfig: {
|
gridItemConfig: {
|
||||||
sizex: 1,
|
sizex: 1,
|
||||||
sizey: 2
|
sizey: 2
|
||||||
|
|||||||
Reference in New Issue
Block a user