From b3cae6e3a9e1d385afb2b7e22d55e38dcd5527f6 Mon Sep 17 00:00:00 2001 From: sanchezvem Date: Mon, 18 May 2026 16:34:26 +0100 Subject: [PATCH] Change empty box --- .../friend-request.component.html | 20 ++++++++++++------- .../friend-request.component.ts | 5 +++-- .../friends/friends-list.component.html | 16 ++++++++++----- .../friends/friends-list.component.ts | 3 ++- 4 files changed, 29 insertions(+), 15 deletions(-) diff --git a/src/app/components/friend-request/friend-request.component.html b/src/app/components/friend-request/friend-request.component.html index 24165b7..215961f 100644 --- a/src/app/components/friend-request/friend-request.component.html +++ b/src/app/components/friend-request/friend-request.component.html @@ -1,5 +1,5 @@ -@if (friendsRequest().length > 0) { -
+@if (friendsRequest().length) { +
@for (request of friendsRequest(); track request.userId; let i = $index) { @if (i == friendsRequest().length - 1) { @@ -37,9 +37,15 @@
} @else { -
-

- Vous n'avez aucune demande d'ami -

-
+ +
+
+ +
+
+

Ajoutez vos amis

+

Vos demandes d'amis apparaîtront ici

+
+
+
} \ No newline at end of file diff --git a/src/app/components/friend-request/friend-request.component.ts b/src/app/components/friend-request/friend-request.component.ts index c016668..29a30af 100644 --- a/src/app/components/friend-request/friend-request.component.ts +++ b/src/app/components/friend-request/friend-request.component.ts @@ -1,6 +1,6 @@ import {Component, inject} from '@angular/core'; import {IonicModule, LoadingController, ToastController} from "@ionic/angular"; -import {checkmarkCircleOutline, closeCircleOutline} from 'ionicons/icons'; +import {checkmarkCircleOutline, closeCircleOutline, peopleOutline} from 'ionicons/icons'; import {addIcons} from "ionicons"; import {PipeComponent} from "../pipe/pipe.component"; import {FriendsService, GetFriendRequestDto} from "../../services/api"; @@ -9,7 +9,8 @@ import {FriendsStateService} from "../../services/friends-state"; addIcons({ 'check': checkmarkCircleOutline, - 'close': closeCircleOutline + 'close': closeCircleOutline, + 'people-outline': peopleOutline }); @Component({ diff --git a/src/app/components/friends/friends-list.component.html b/src/app/components/friends/friends-list.component.html index eb3be0d..db61099 100644 --- a/src/app/components/friends/friends-list.component.html +++ b/src/app/components/friends/friends-list.component.html @@ -35,11 +35,17 @@
} @else { -
-

- C'est plus marrant à plusieurs, ajoute des amis ! -

-
+ +
+
+ +
+
+

Ajoutez vos amis

+

Vos amis apparaîtront ici

+
+
+
} diff --git a/src/app/components/friends/friends-list.component.ts b/src/app/components/friends/friends-list.component.ts index 306e82a..b8af8c7 100644 --- a/src/app/components/friends/friends-list.component.ts +++ b/src/app/components/friends/friends-list.component.ts @@ -1,6 +1,6 @@ import {Component, inject, OnInit, signal} from '@angular/core'; import {IonicModule, LoadingController, ToastController} from "@ionic/angular"; -import {closeCircleOutline} from 'ionicons/icons'; +import {closeCircleOutline, peopleOutline} from 'ionicons/icons'; import {addIcons} from "ionicons"; import {FriendsService, GetUserDto, UsersService} from "../../services/api"; import {firstValueFrom} from "rxjs"; @@ -9,6 +9,7 @@ import {GenericUserInfoComponent} from "../generic-user-info/generic-user-info.c addIcons({ 'close': closeCircleOutline, + 'people': peopleOutline }); @Component({