2019-07-01 11:35:09 +02:00
|
|
|
import { FormControl, FormGroup } from "@angular/forms";
|
2019-03-01 16:16:21 +01:00
|
|
|
import { DatasetProfileDefinitionModel } from "../../../core/model/dataset-profile-definition/dataset-profile-definition";
|
2019-07-01 11:35:09 +02:00
|
|
|
import { DatasetDescriptionFormEditorModel } from "../../misc/dataset-description-form/dataset-description-form.model";
|
2019-03-01 16:16:21 +01:00
|
|
|
|
|
|
|
export class QuickWizardDatasetDescriptionModel extends DatasetDescriptionFormEditorModel {
|
|
|
|
|
2019-03-14 19:00:02 +01:00
|
|
|
public datasetLabel: string;
|
2019-03-01 16:16:21 +01:00
|
|
|
|
2019-07-01 11:35:09 +02:00
|
|
|
fromModel(item: DatasetProfileDefinitionModel): DatasetDescriptionFormEditorModel {
|
|
|
|
super.fromModel(item);
|
|
|
|
return this;
|
|
|
|
}
|
2019-03-01 16:16:21 +01:00
|
|
|
|
2019-07-01 11:35:09 +02:00
|
|
|
buildForm(): FormGroup {
|
|
|
|
const formGroup: FormGroup = super.buildForm();
|
|
|
|
formGroup.addControl('datasetLabel', new FormControl({ value: this.datasetLabel }));
|
|
|
|
formGroup.addControl('status', new FormControl({ value: this.status }));
|
|
|
|
return formGroup;
|
|
|
|
}
|
2019-03-14 19:00:02 +01:00
|
|
|
}
|