@page "/settings"
@attribute [Authorize]
@using Microsoft.AspNetCore.Components.Forms
@using WorkTracker.Services.Storage
@inject IAppSettingsService AppSettingsService
@inject IDatabaseBackupService DatabaseBackupService
@inject AppThemeState ThemeState
@inject IJSRuntime JS
Default values used to compute manual work-unit totals and income.
@if (settings is null) {Loading...
} else {Export the full database as JSON or restore a previously exported JSON backup. Restore replaces the current database only when the backup format version and database schema version are supported.
This overwrites the existing database with the selected backup file.