Skip to content

Commit

Permalink
refact: sort label well formated in frontend
Browse files Browse the repository at this point in the history
Reviewed-by: andriac
  • Loading branch information
andriacap committed Jan 31, 2024
1 parent a5dacfe commit ceb0c8f
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
3 changes: 0 additions & 3 deletions backend/geonature/core/imports/routes/imports.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,9 +81,6 @@ def get_import_list(scope, destination=None):
sort_dir = request.args.get("sort_dir", default="desc", type=str)
filters = []

if sort == "dest_label":
sort = "destination.label"

if search:
filters.append(TImports.full_file_name.ilike(f"%{search}%"))
filters.append(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ <h5 class="card-title mb-0">Liste des imports</h5>
</ng-container>
</ng-template>
</ngx-datatable-column>
<ngx-datatable-column maxWidth="200" name="Destination" [sortable]="true" prop="dest_label">
<ngx-datatable-column maxWidth="200" name="Destination" [sortable]="true" prop="destination.label">
<ng-template let-row="row" ngx-datatable-cell-template>
<p *ngIf="row.destination">{{row.destination.code}}</p>
</ng-template>
Expand Down

0 comments on commit ceb0c8f

Please sign in to comment.