Skip to content

Commit c41d8d7

Browse files
committed
fix(ui): reuse stats
Signed-off-by: Asitha de Silva <asithade@gmail.com>
1 parent e131fb6 commit c41d8d7

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

apps/lfx-pcc/src/app/layouts/profile-layout/components/profile-stats/profile-stats.component.html

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<!-- Copyright The Linux Foundation and each contributor to LFX. -->
22
<!-- SPDX-License-Identifier: MIT -->
33

4-
@if (statistics()) {
4+
@if (statistics(); as stats) {
55
<div class="flex flex-col gap-4">
66
<!-- Quick Actions -->
77
<lfx-card>
@@ -37,7 +37,7 @@ <h3 class="text-lg font-semibold text-gray-900 mb-0">Profile Statistics</h3>
3737
<i class="fa-light fa-users text-purple-600"></i>
3838
</div>
3939
<div>
40-
<p class="text-lg font-bold text-gray-900">{{ statistics()!.committees }}</p>
40+
<p class="text-lg font-bold text-gray-900">{{ stats!.committees }}</p>
4141
<p class="text-xs text-gray-500">Committees</p>
4242
</div>
4343
</div>
@@ -50,7 +50,7 @@ <h3 class="text-lg font-semibold text-gray-900 mb-0">Profile Statistics</h3>
5050
<i class="fa-light fa-video text-amber-600"></i>
5151
</div>
5252
<div>
53-
<p class="text-lg font-bold text-gray-900">{{ statistics()!.meetings }}</p>
53+
<p class="text-lg font-bold text-gray-900">{{ stats!.meetings }}</p>
5454
<p class="text-xs text-gray-500">Meetings</p>
5555
</div>
5656
</div>
@@ -63,7 +63,7 @@ <h3 class="text-lg font-semibold text-gray-900 mb-0">Profile Statistics</h3>
6363
<i class="fa-light fa-code-commit text-indigo-600"></i>
6464
</div>
6565
<div>
66-
<p class="text-lg font-bold text-gray-900">{{ statistics()!.contributions }}</p>
66+
<p class="text-lg font-bold text-gray-900">{{ stats!.contributions }}</p>
6767
<p class="text-xs text-gray-500">Contributions</p>
6868
</div>
6969
</div>
@@ -76,7 +76,7 @@ <h3 class="text-lg font-semibold text-gray-900 mb-0">Profile Statistics</h3>
7676
<i class="fa-light fa-folder-open text-red-600"></i>
7777
</div>
7878
<div>
79-
<p class="text-lg font-bold text-gray-900">{{ statistics()!.activeProjects }}</p>
79+
<p class="text-lg font-bold text-gray-900">{{ stats!.activeProjects }}</p>
8080
<p class="text-xs text-gray-500">Active Projects</p>
8181
</div>
8282
</div>

0 commit comments

Comments
 (0)