mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-01-21 09:35:38 -05:00
@@ -39,8 +39,15 @@ export class CurrentModelsComponent extends ModelViewBase implements IPageView {
|
||||
* @param modelBuilder register the components
|
||||
*/
|
||||
public registerComponent(modelBuilder: azdata.ModelBuilder): azdata.Component {
|
||||
this._tableSelectionComponent = new TableSelectionComponent(this._apiWrapper, this, { editable: false, preSelected: true });
|
||||
this._tableSelectionComponent.registerComponent(modelBuilder, constants.databaseName, constants.tableName);
|
||||
this._tableSelectionComponent = new TableSelectionComponent(this._apiWrapper, this, {
|
||||
editable: false,
|
||||
preSelected: true,
|
||||
databaseTitle: constants.databaseName,
|
||||
tableTitle: constants.tableName,
|
||||
databaseInfo: constants.modelDatabaseInfo,
|
||||
tableInfo: constants.modelTableInfo
|
||||
});
|
||||
this._tableSelectionComponent.registerComponent(modelBuilder);
|
||||
this._tableSelectionComponent.onSelectedChanged(async () => {
|
||||
await this.onTableSelected();
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user