From 6bf8230fa3cd3af7536a392ad4cefd581d043f48 Mon Sep 17 00:00:00 2001 From: sanchezvem Date: Thu, 16 Apr 2026 17:02:11 +0100 Subject: [PATCH] Added alternative if we are an empty gallery --- .../components/gallery/gallery.component.html | 61 ++++++++++++------- .../components/gallery/gallery.component.ts | 5 +- src/app/pages/home/home.component.html | 3 +- 3 files changed, 43 insertions(+), 26 deletions(-) diff --git a/src/app/components/gallery/gallery.component.html b/src/app/components/gallery/gallery.component.html index 1bfca86..73b33f5 100644 --- a/src/app/components/gallery/gallery.component.html +++ b/src/app/components/gallery/gallery.component.html @@ -1,26 +1,41 @@ -@if (!modal) { -
-
- @for (p of proofs(); track p) { - - } +@if (proofs().length > 0) { + @if (!modal) { +
+
+ @for (p of proofs(); track p) { + + } +
-
+ } @else { +
+ + + + +
+ } } @else { -
- - - - -
+ +
+
+ +
+
+

C'est bien vide par ici...

+

Participe à des défis pour remplir ta galerie + !

+
+
+
} \ No newline at end of file diff --git a/src/app/components/gallery/gallery.component.ts b/src/app/components/gallery/gallery.component.ts index 7e84f91..a936742 100644 --- a/src/app/components/gallery/gallery.component.ts +++ b/src/app/components/gallery/gallery.component.ts @@ -3,10 +3,11 @@ import {IonicModule, LoadingController, ToastController} from "@ionic/angular"; import {GetUserProofDto, UsersService} from "../../services/api"; import {firstValueFrom} from "rxjs"; import {addIcons} from "ionicons"; -import {closeCircleOutline} from "ionicons/icons"; +import {closeCircleOutline, imageOutline} from "ionicons/icons"; addIcons({ - 'close-circle-outline': closeCircleOutline + 'close-circle-outline': closeCircleOutline, + 'image': imageOutline, }) @Component({ diff --git a/src/app/pages/home/home.component.html b/src/app/pages/home/home.component.html index cd5bea9..638a0d0 100644 --- a/src/app/pages/home/home.component.html +++ b/src/app/pages/home/home.component.html @@ -103,7 +103,8 @@
+ (userDesignation)="user.set($event)"> +
}