fix(loading): update loading checks to use signal() for reactive state management (#727)

This commit is contained in:
brios
2026-04-22 17:27:43 -04:00
committed by Zach Yale
parent 7a88b12430
commit 284e7bec49
59 changed files with 577 additions and 345 deletions
@@ -61,7 +61,7 @@
type="submit"
[label]="t('searchBtn')"
icon="pi pi-search"
[loading]="loading"
[loading]="loading()"
[disabled]="searchForm.invalid">
</p-button>
<p-button
@@ -81,7 +81,7 @@
<!-- Results Area -->
<div class="results-section">
@if (!hasSearched) {
@if (!hasSearched()) {
<!-- Initial State -->
<div class="empty-state">
<div class="empty-state-icon">
@@ -90,7 +90,7 @@
<h3>{{ t('searchForCovers') }}</h3>
<p>{{ t('searchForCoversDescription') }}</p>
</div>
} @else if (loading) {
} @else if (loading()) {
<!-- Loading State -->
<div class="loading-state">
<p-progressSpinner strokeWidth="3" animationDuration="1s"></p-progressSpinner>