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 = '';