Added version 1 fields to settings page

This commit is contained in:
Henry Whitaker
2021-04-11 09:13:13 +01:00
parent f809f816c1
commit 48fbbc3713
5 changed files with 240 additions and 3 deletions

View File

@@ -12,6 +12,7 @@ import HealthchecksSettings from './tabs/HealthchecksSettings';
import NotificationsSettings from './tabs/NotificationsSettings';
import Authentication from '../Authentication/Authentication';
import TableSettings from './tabs/TableSettings';
import InfluxDBSettings from './tabs/InfluxDBSettings';
export default class SettingsTabs extends Component {
constructor(props) {
@@ -30,6 +31,7 @@ export default class SettingsTabs extends Component {
'Tables',
'Notifications',
'healthchecks.io',
'InfluxDB',
'Reset',
'Backup/Restore',
];
@@ -138,6 +140,11 @@ export default class SettingsTabs extends Component {
data={data.healthchecks}
generateInputs={this.generateInputs}
save={this.save} />
case 'InfluxDB':
return <InfluxDBSettings
data={data.influxdb}
generateInputs={this.generateInputs}
save={this.save} />
case 'Reset':
return <ResetSettings
data={data.healthchecks}