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:
Udeesha Gautam
2020-09-18 17:44:58 -07:00
committed by GitHub
parent 7f3d5bac0a
commit 8782eeb32f
2 changed files with 7 additions and 2 deletions

View File

@@ -186,13 +186,13 @@ export class CurrentModelsTable extends ModelViewBase implements IDataComponent<
public async onLoading(): Promise<void> {
if (this._loader) {
await this._loader.updateProperties({ loading: true });
this._loader.loading = true;
}
}
public async onLoaded(): Promise<void> {
if (this._loader) {
await this._loader.updateProperties({ loading: false });
this._loader.loading = false;
}
}

View File

@@ -99,6 +99,11 @@ export class ModelImportLocationPage extends ModelViewBase implements IPageView,
}
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()) {
this._labelComponent.value = constants.selectModelsTableMessage;
} else {