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 Jun 28, 2024
1 parent 0c13ae4 commit 80238b4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/app/views/query-interfaces/query-interfaces.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ export class QueryInterfacesComponent implements OnInit, OnDestroy {
this._crud.getAvailableQueryInterfaces().subscribe({
next: res => {
const availableQIs = <QueryInterfaceInformation[]>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);
Expand Down Expand Up @@ -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()
};
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 80238b4

Please sign in to comment.