Signed-off-by: Vasyl Razinkov <vasyl.razinkov@est.tech>
Change-Id: I6271488d30180f33e7e1cdc511e21fa71bfdc8b5
Issue-ID: SDC-4372
input.schema.property = new SchemaProperty();
input.schema.property.type = schemaForm.value;
}
- input.inputId = this.generateUniqueId();
this.onAddInputEvent.emit(input);
this.hideAddInput();
this.resetForm();
this.resetForm();
}
- private generateUniqueId(): string {
- let result = '';
- const characters = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789';
- const charactersLength = characters.length;
- for (let i = 0; i < 36; i++ ) {
- result += characters.charAt(Math.floor(Math.random() * charactersLength));
- }
- return result;
- }
-
private resetForm() {
this.inputForm.reset();
this.showInputSchema = false;