Skip to content

Commit

Permalink
Rename interfaceName to interfaceType
Browse files Browse the repository at this point in the history
  • Loading branch information
gartens committed Jul 29, 2024
1 parent 34dd45f commit 322f047
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions src/app/views/query-interfaces/query-interfaces.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 = <QueryInterfaceInformation[]>availableQIs;
availableQIs.sort((a, b) => (a.interfaceType > b.interfaceType) ? 1 : -1);
this.availableQueryInterfaces = availableQIs;
}, error: err => {
console.log(err);
}
Expand Down Expand Up @@ -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()
};
Expand Down
4 changes: 2 additions & 2 deletions src/app/views/query-interfaces/query-interfaces.model.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ export interface QueryInterface {
}

export interface QueryInterfaceInformation {
interfaceName: string;
interfaceType: string;
description: string;
availableSettings: QueryInterfaceSetting[];
}
Expand All @@ -23,7 +23,7 @@ export interface QueryInterfaceSetting {
}

export interface QueryInterfaceCreateRequest {
interfaceName: string;
interfaceType: string;
uniqueName: string;
settings: Map<string, string>;
}

0 comments on commit 322f047

Please sign in to comment.