aboutsummaryrefslogtreecommitdiffstats
path: root/catalog-ui/src/app
diff options
context:
space:
mode:
authorvasraz <vasyl.razinkov@est.tech>2023-02-07 15:21:44 +0000
committerMichael Morris <michael.morris@est.tech>2023-02-27 18:32:38 +0000
commit1f589435d0213865e6d82b3441e1c3d18a263aaf (patch)
tree4eaaf7acab650fa3da1a6b21730008d99a72e56c /catalog-ui/src/app
parent5ff0ba7de86a7690ef62cb9ba40e6fa95ace7d2f (diff)
Remove 'Security Hotspot - Weak Cryptography' reported by Sonar
Signed-off-by: Vasyl Razinkov <vasyl.razinkov@est.tech> Change-Id: I6271488d30180f33e7e1cdc511e21fa71bfdc8b5 Issue-ID: SDC-4372
Diffstat (limited to 'catalog-ui/src/app')
-rw-r--r--catalog-ui/src/app/ng2/pages/composition/interface-operatons/operation-creator/add-input/add-input.component.ts11
1 files changed, 0 insertions, 11 deletions
diff --git a/catalog-ui/src/app/ng2/pages/composition/interface-operatons/operation-creator/add-input/add-input.component.ts b/catalog-ui/src/app/ng2/pages/composition/interface-operatons/operation-creator/add-input/add-input.component.ts
index 6632d1a69e..c757d5f9e3 100644
--- a/catalog-ui/src/app/ng2/pages/composition/interface-operatons/operation-creator/add-input/add-input.component.ts
+++ b/catalog-ui/src/app/ng2/pages/composition/interface-operatons/operation-creator/add-input/add-input.component.ts
@@ -136,7 +136,6 @@ export class AddInputComponent implements OnInit {
input.schema.property = new SchemaProperty();
input.schema.property.type = schemaForm.value;
}
- input.inputId = this.generateUniqueId();
this.onAddInputEvent.emit(input);
this.hideAddInput();
this.resetForm();
@@ -158,16 +157,6 @@ export class AddInputComponent implements OnInit {
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;