From af8437ef2ff94df45ec95ca639b1b3b7539a7db8 Mon Sep 17 00:00:00 2001 From: John Balasis <15860451+jBalasis@users.noreply.github.com> Date: Wed, 18 Jan 2023 14:58:51 +0000 Subject: [PATCH] removed some logs --- .../datasource-new-interface-form.component.html | 5 +++-- .../sources-forms/datasource-new-interface-form.component.ts | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/src/app/shared/reusablecomponents/sources-forms/datasource-new-interface-form.component.html b/src/app/shared/reusablecomponents/sources-forms/datasource-new-interface-form.component.html index 2842c03fd..c815db0f7 100644 --- a/src/app/shared/reusablecomponents/sources-forms/datasource-new-interface-form.component.html +++ b/src/app/shared/reusablecomponents/sources-forms/datasource-new-interface-form.component.html @@ -58,7 +58,8 @@
-
{{repoInterfaceForm.get('compatibilityLevel').value ? this.compClasses[repoInterfaceForm.get('compatibilityLevel').value] : 'not available' }}
+
{{(repoInterfaceForm.get('compatibilityLevel').value && repoInterfaceForm.get('compatibilityLevel').value !== 'UNKNOWN') + ? this.compClasses[repoInterfaceForm.get('compatibilityLevel').value] : 'not available' }}
@@ -73,7 +74,7 @@
-
{{repoInterfaceForm.value | json}}
+ diff --git a/src/app/shared/reusablecomponents/sources-forms/datasource-new-interface-form.component.ts b/src/app/shared/reusablecomponents/sources-forms/datasource-new-interface-form.component.ts index d97ff1227..0bbd36a40 100644 --- a/src/app/shared/reusablecomponents/sources-forms/datasource-new-interface-form.component.ts +++ b/src/app/shared/reusablecomponents/sources-forms/datasource-new-interface-form.component.ts @@ -77,7 +77,6 @@ export class DatasourceNewInterfaceFormComponent implements OnInit { this.repoInterfaceForm.get('compatibilityLevelOverride').setValue(this.currentInterface.compatibilityOverride); this.repoService.getInterfaceDesiredCompatibilityLevel(this.currentInterface.datasource, this.currentInterface.id).subscribe( res => { - console.log(res); if (res !== null) { this.repoInterfaceForm.get('desiredCompatibilityLevel').setValue(res['desiredCompatibilityLevel']); } @@ -191,6 +190,7 @@ export class DatasourceNewInterfaceFormComponent implements OnInit { saveInterface() { this.errorMessage = ''; this.successMessage = ''; + console.log('saving interface: ' + this.currentInterface?.id); if (this.formIsValid()) { const baseurl = this.repoInterfaceForm.get('baseurl').value; let valset = '';