Skip to content

Commit

Permalink
Add spinner icon to indicate loading state
Browse files Browse the repository at this point in the history
Integrated FontAwesome spinner icon into the loading component to enhance user experience by providing a clear visual cue during data loading. This change improves the UI feedback loop, making it more intuitive for users to understand that a background process is ongoing.
  • Loading branch information
Zerskk committed Dec 2, 2024
1 parent 4d274ae commit 38dcfde
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions archigator/src/app/main/main.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

<div *ngIf="loading" class="loading-spinner">
<!-- Placeholder for your spinner; you can replace it with your spinner design -->
<fa-icon class="spinner" [size]="'2x'" [icon]="faSpinner" [spin]="true" *ngIf="loading"></fa-icon>
<p>Loading...</p>
</div>

Expand Down
3 changes: 2 additions & 1 deletion archigator/src/app/main/main.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import {first} from "rxjs/operators";
import {ApiQueueService} from "../services/apiqueue.service";
import {ApiService} from "../services/api.service";
import {Metadata} from "../shared/response";
import {faSpinner} from "@fortawesome/free-solid-svg-icons";


@Component({
Expand Down Expand Up @@ -221,5 +222,5 @@ export class MainComponent implements OnInit{
}



protected readonly faSpinner = faSpinner;
}

0 comments on commit 38dcfde

Please sign in to comment.