mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-02-16 18:46:40 -05:00
Port/ml fixes (#12491)
* change to allow refresh and delete correctly (#12477) * add table name to models that are imported (#12445)
This commit is contained in:
@@ -186,13 +186,13 @@ export class CurrentModelsTable extends ModelViewBase implements IDataComponent<
|
|||||||
|
|
||||||
public async onLoading(): Promise<void> {
|
public async onLoading(): Promise<void> {
|
||||||
if (this._loader) {
|
if (this._loader) {
|
||||||
await this._loader.updateProperties({ loading: true });
|
this._loader.loading = true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public async onLoaded(): Promise<void> {
|
public async onLoaded(): Promise<void> {
|
||||||
if (this._loader) {
|
if (this._loader) {
|
||||||
await this._loader.updateProperties({ loading: false });
|
this._loader.loading = false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -99,6 +99,11 @@ export class ModelImportLocationPage extends ModelViewBase implements IPageView,
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (this.importTable && this._labelComponent) {
|
if (this.importTable && this._labelComponent) {
|
||||||
|
|
||||||
|
// Add table name to the models imported.
|
||||||
|
// Since Table name is picked last as per new flow this hasn't been set yet.
|
||||||
|
this.modelsViewData?.forEach(x => x.targetImportTable = this.importTable);
|
||||||
|
|
||||||
if (!this.validateImportTableName()) {
|
if (!this.validateImportTableName()) {
|
||||||
this._labelComponent.value = constants.selectModelsTableMessage;
|
this._labelComponent.value = constants.selectModelsTableMessage;
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
Reference in New Issue
Block a user