connectors formating logs

This commit is contained in:
Maksym Dudnik 2023-07-28 10:20:49 +03:00
parent 880e1b32da
commit 12ab38d7d1
2 changed files with 3 additions and 2 deletions

View File

@ -58,7 +58,7 @@
</ng-container>
<ng-container matColumnDef="syncStatus">
<mat-header-cell *matHeaderCellDef mat-sort-header style="width: 30%">
{{ 'gateway.connectors-table-status' | translate }}
{{ 'gateway.configuration' | translate }}
</mat-header-cell>
<mat-cell *matCellDef="let attribute" style="text-transform: uppercase">
<div
@ -166,7 +166,7 @@
fxFlex
fxLayout="column"
required
label="{{ 'gateway.connector-json' | translate }}"
label="{{ 'gateway.configuration' | translate }}"
formControlName="configurationJson">
</tb-json-object-edit>
<div fxLayoutAlign="start center">

View File

@ -165,6 +165,7 @@ export class GatewayConnectorComponent extends PageComponent implements AfterVie
} else if (sortHeaderId === 'enabled') {
return this.activeConnectors.includes(data.key) ? 1 : 0;
}
console.log(data, sortHeaderId, data[sortHeaderId] || data.value[sortHeaderId]);
return data[sortHeaderId] || data.value[sortHeaderId];
};