From 16d4deb9bfba416908317d3222380b4f0351cca2 Mon Sep 17 00:00:00 2001 From: Hamza HRAMCHI <hamza.hramchi@xelians.fr> Date: Mon, 16 May 2022 16:43:26 +0200 Subject: [PATCH] FIX #20773 TIME 0:10 display message if empty users --- lang/en.json | 3 ++- lang/fr.json | 3 ++- .../app/administration/group/list/users.component.html | 5 ++++- 3 files changed, 8 insertions(+), 3 deletions(-) diff --git a/lang/en.json b/lang/en.json index 224002d631..c8e331ebaf 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 a02eb1fe02..2ff57f0027 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 2af53a9763..7d5ba32e6c 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 -- GitLab