Tasks schema registration (#900)

* inital task update

* fix schema update problems

* remove dead code
This commit is contained in:
Anthony Dresser
2018-03-13 13:55:08 -07:00
committed by GitHub
parent 722f5e56cd
commit bcd72d21c7
4 changed files with 26 additions and 20 deletions

View File

@@ -51,7 +51,7 @@ class DashboardContainerRegistry implements IDashboardContainerRegistry {
}
public get containerTypeSchemaProperties(): IJSONSchemaMap {
return deepClone(this._dashboardContainerTypeSchemaProperties);
return this._dashboardContainerTypeSchemaProperties;
}
/**
@@ -64,7 +64,7 @@ class DashboardContainerRegistry implements IDashboardContainerRegistry {
}
public get navSectionContainerTypeSchemaProperties(): IJSONSchemaMap {
return deepClone(this._dashboardNavSectionContainerTypeSchemaProperties);
return this._dashboardNavSectionContainerTypeSchemaProperties;
}
}

View File

@@ -78,7 +78,7 @@ class DashboardWidgetRegistry implements IDashboardWidgetRegistry {
* @param val cal for default
* @param context either 'database' or 'server' for what page to register for; if not specified, will register for both
*/
registerNonCustomDashboardWidget(id: string, description: string, val: IInsightsConfig, context?: 'database' | 'server'): WidgetIdentifier {
public registerNonCustomDashboardWidget(id: string, description: string, val: IInsightsConfig, context?: 'database' | 'server'): WidgetIdentifier {
if (context === undefined || context === 'database') {
this._dashboardWidgetSchema.properties[id] = { type: 'null', default: null };
}