diff --git a/src/components/common/loading-indicator/loading-indicator.component.html b/src/components/common/loading-indicator/loading-indicator.component.html index 87083ed..ffcd980 100644 --- a/src/components/common/loading-indicator/loading-indicator.component.html +++ b/src/components/common/loading-indicator/loading-indicator.component.html @@ -1,7 +1,7 @@ @if (loading) { } @else { - } diff --git a/src/components/common/loading-indicator/loading-indicator.component.ts b/src/components/common/loading-indicator/loading-indicator.component.ts index 5a0a0b2..7d78091 100644 --- a/src/components/common/loading-indicator/loading-indicator.component.ts +++ b/src/components/common/loading-indicator/loading-indicator.component.ts @@ -18,4 +18,9 @@ import {MatButton, MatFabButton} from "@angular/material/button"; export class LoadingIndicatorComponent { @Input() loading: boolean = true; @Output() retryFunction: EventEmitter = new EventEmitter(); + + protected retryLoad() { + this.loading = true; + this.retryFunction.emit(); + } }