From 80238b4b608e146453054629fcf78d14f9fca0f2 Mon Sep 17 00:00:00 2001 From: Martin Vahlensieck Date: Fri, 28 Jun 2024 12:15:54 +0200 Subject: [PATCH] Rename interfaceName to interfaceType --- src/app/views/query-interfaces/query-interfaces.component.ts | 4 ++-- src/app/views/query-interfaces/query-interfaces.model.ts | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/app/views/query-interfaces/query-interfaces.component.ts b/src/app/views/query-interfaces/query-interfaces.component.ts index 16d2b97a..578c6285 100644 --- a/src/app/views/query-interfaces/query-interfaces.component.ts +++ b/src/app/views/query-interfaces/query-interfaces.component.ts @@ -86,7 +86,7 @@ export class QueryInterfacesComponent implements OnInit, OnDestroy { this._crud.getAvailableQueryInterfaces().subscribe({ next: res => { const availableQIs = res; - availableQIs.sort((a, b) => (a.interfaceName > b.interfaceName) ? 1 : -1); + availableQIs.sort((a, b) => (a.interfaceType > b.interfaceType) ? 1 : -1); this.availableQueryInterfaces = availableQIs; }, error: err => { console.log(err); @@ -191,7 +191,7 @@ export class QueryInterfacesComponent implements OnInit, OnDestroy { return; } const deploy: QueryInterfaceCreateRequest = { - interfaceName: this.editingAvailableQI.interfaceName, + interfaceType: this.editingAvailableQI.interfaceType, uniqueName: this.availableQIUniqueNameForm.controls['uniqueName'].value, settings: new Map() }; diff --git a/src/app/views/query-interfaces/query-interfaces.model.ts b/src/app/views/query-interfaces/query-interfaces.model.ts index ff0b9096..ff43d580 100644 --- a/src/app/views/query-interfaces/query-interfaces.model.ts +++ b/src/app/views/query-interfaces/query-interfaces.model.ts @@ -8,7 +8,7 @@ export interface QueryInterface { } export interface QueryInterfaceInformation { - interfaceName: string; + interfaceType: string; description: string; availableSettings: QueryInterfaceSetting[]; } @@ -23,7 +23,7 @@ export interface QueryInterfaceSetting { } export interface QueryInterfaceCreateRequest { - interfaceName: string; + interfaceType: string; uniqueName: string; settings: Map; }