Mining/ui/src/app/app.html

20 lines
858 B
HTML

<div class="mining-dashboard">
@if (state().systemInfo === null && !state().needsSetup) {
<div class="centered-container">
<wa-spinner style="font-size: 3rem; margin-top: 1rem;"></wa-spinner>
<p>Connecting to API...</p>
</div>
} @else if (!state().apiAvailable) {
<div class="centered-container">
<p>API Not Available. Please ensure the mining service is running.</p>
<wa-button (click)="checkSystemState()">
<wa-icon name="arrow-clockwise" slot="prefix"></wa-icon>
Retry
</wa-button>
</div>
} @else if (state().apiAvailable && state().needsSetup) {
<snider-mining-setup-wizard></snider-mining-setup-wizard>
} @else if (state().apiAvailable && !state().needsSetup) {
<snider-mining-dashboard></snider-mining-dashboard>
}
</div>