diff --git a/lang/en.json b/lang/en.json index 224002d6317ab79f40be175203e9f53c73647593..c8e331ebaf809525b531a3a929b91b780a9f6a8d 100755 --- a/lang/en.json +++ b/lang/en.json @@ -650,6 +650,7 @@ "groupsToManage": "Choose the authorized assignment groups", "unlinkGroup": "Unlink group", "emptyGroups": "No groups available to associate", - "emptyGroupUsers": "No users associated with this group" + "emptyGroupUsers": "No users associated with this group", + "emptyUsers": "No users available to associate" } } \ No newline at end of file diff --git a/lang/fr.json b/lang/fr.json index a02eb1fe029f6c1db6b381ce16d60dfefb35ba07..2ff57f0027a27dbe5f574353be065f27886125ba 100755 --- a/lang/fr.json +++ b/lang/fr.json @@ -649,6 +649,7 @@ "groupsToManage": "Choisir les groupes d'affectations autorisés", "unlinkGroup": "Dissocier le groupe", "emptyGroups": "Aucun groupe disponible à associer", - "emptyGroupUsers": "Aucun utilisateur associé à ce groupe" + "emptyGroupUsers": "Aucun utilisateur associé à ce groupe", + "emptyUsers": "Aucun utilisateur disponible à associer" } } diff --git a/src/frontend/app/administration/group/list/users.component.html b/src/frontend/app/administration/group/list/users.component.html index 2af53a9763a8c074cdb47950f5e74a4dbad21a1d..7d5ba32e6c5388a536e983d87cc83ac976aaf380 100644 --- a/src/frontend/app/administration/group/list/users.component.html +++ b/src/frontend/app/administration/group/list/users.component.html @@ -4,7 +4,7 @@ </ion-toolbar> </ion-header> <ion-content> - <ion-list> + <ion-list *ngIf="usersList.length > 0"> <ion-virtual-scroll [items]="usersList" approxItemHeight="50px" style="height: 450px;"> <ion-item button *virtualItem="let element" (click)="selectUser(element)"> <ion-label> @@ -13,4 +13,7 @@ </ion-item> </ion-virtual-scroll> </ion-list> + <ion-item lines="none" *ngIf="usersList.length === 0" style="text-align: center; font-size: 20px; color: gray; margin-top: 35%;"> + <ion-label>{{'lang.emptyUsers' | translate}}</ion-label> + </ion-item> </ion-content> \ No newline at end of file