diff --git a/src/app/views/query-interfaces/query-interfaces.component.ts b/src/app/views/query-interfaces/query-interfaces.component.ts index ca8d1618..c1504a14 100644 --- a/src/app/views/query-interfaces/query-interfaces.component.ts +++ b/src/app/views/query-interfaces/query-interfaces.component.ts @@ -85,8 +85,8 @@ export class QueryInterfacesComponent implements OnInit, OnDestroy { getAvailableQueryInterfaces() { this._crud.getAvailableQueryInterfaces().subscribe({ next: availableQIs => { - availableQIs.sort((a, b) => (a.interfaceName > b.interfaceName) ? 1 : -1); - this.availableQueryInterfaces = availableQIs; + availableQIs.sort((a, b) => (a.interfaceType > b.interfaceType) ? 1 : -1); + this.availableQueryInterfaces = availableQIs; }, error: err => { console.log(err); } @@ -190,7 +190,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; }