Skip to content
Snippets Groups Projects
Commit 5101c08a authored by Julien CORNILLE's avatar Julien CORNILLE Committed by Benaissa BENARBIA
Browse files

[FIX RABB-1203-1178] Fix unit's order and spelling

parent 6ef34a03
No related branches found
No related tags found
1 merge request!51Merge mis a jour vitam-ui
...@@ -62,7 +62,7 @@ ...@@ -62,7 +62,7 @@
</button> </button>
<div class="align-items-center "> <div class="align-items-center ">
<div class="text small primary mb-2">{{'GROUP.INFORMATIONS.UNITS_TABLE_TITLE' | translate}}</div> <div class="text small primary mb-2">{{'GROUP.INFORMATIONS.UNITS_TABLE_TITLE' | translate}}</div>
<div *ngFor="let unit of group.units" class="text medium">{{ unit}}</div> <div *ngFor="let unit of getUnits(group)" class="text medium">{{ unit}}</div>
</div> </div>
</div> </div>
</form> </form>
...@@ -154,4 +154,8 @@ export class InformationTabComponent implements OnDestroy, OnChanges { ...@@ -154,4 +154,8 @@ export class InformationTabComponent implements OnDestroy, OnChanges {
}); });
} }
getUnits(group: Group): string[] {
return group?.units?.sort((a: any, b: any) => a.localeCompare(b));
}
} }
...@@ -426,7 +426,7 @@ ...@@ -426,7 +426,7 @@
} }
}, },
"UNITS_FORM": { "UNITS_FORM": {
"INPUT_PLACEHOLDER": "Unité d'appartenances", "INPUT_PLACEHOLDER": "Unité d'appartenance",
"UNIT_ALREADY_EXIST": "Unité déjà associée à un groupe", "UNIT_ALREADY_EXIST": "Unité déjà associée à un groupe",
"UNIT_ALREADY_ADDED": "Unité déjà ajoutée" "UNIT_ALREADY_ADDED": "Unité déjà ajoutée"
} }
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment